summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3bda998)
raw | patch | inline | side by side (parent: 3bda998)
author | Florian Forster <octo@collectd.org> | |
Fri, 19 Jun 2015 18:03:08 +0000 (20:03 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Fri, 19 Jun 2015 18:03:08 +0000 (20:03 +0200) |
src/barometer.c | patch | blob | history |
diff --git a/src/barometer.c b/src/barometer.c
index ee200b6d8b0eb9daa7df692cc58e9617fba34529..a6d98354d7ae2857c9be395e0bb81254c3c2d7cb 100644 (file)
--- a/src/barometer.c
+++ b/src/barometer.c
*/
static int averaging_create(averaging_t *avg, int size)
{
- avg->ring_buffer = calloc ((size_t) size, sizeof (*avg));
+ avg->ring_buffer = calloc ((size_t) size, sizeof (*avg->ring_buffer));
if (avg->ring_buffer == NULL)
{
ERROR ("barometer: averaging_create - ring buffer allocation of size %d failed",