projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e91380
)
contrib/format.sh src/aggregation.c
author
Florian Forster
<octo@collectd.org>
Tue, 28 Nov 2017 07:24:14 +0000
(08:24 +0100)
committer
Florian Forster
<octo@collectd.org>
Tue, 28 Nov 2017 07:24:14 +0000
(08:24 +0100)
src/aggregation.c
patch
|
blob
|
history
diff --git
a/src/aggregation.c
b/src/aggregation.c
index
8d5cd08
..
272a04f
100644
(file)
--- a/
src/aggregation.c
+++ b/
src/aggregation.c
@@
-405,9
+405,10
@@
static int agg_instance_read(agg_instance_t *inst, cdtime_t t) /* {{{ */
READ_FUNC(average, (inst->sum / ((gauge_t)inst->num)));
READ_FUNC(min, inst->min);
READ_FUNC(max, inst->max);
- READ_FUNC(stddev, sqrt((((gauge_t)inst->num) * inst->squares_sum) -
- (inst->sum * inst->sum)) /
- ((gauge_t)inst->num));
+ READ_FUNC(stddev,
+ sqrt((((gauge_t)inst->num) * inst->squares_sum) -
+ (inst->sum * inst->sum)) /
+ ((gauge_t)inst->num));
}
/* Reset internal state. */