diff options
Diffstat (limited to 'web/api/queries/sum/sum.c')
-rw-r--r-- | web/api/queries/sum/sum.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/web/api/queries/sum/sum.c b/web/api/queries/sum/sum.c index ed81156cf3..0da9937a3a 100644 --- a/web/api/queries/sum/sum.c +++ b/web/api/queries/sum/sum.c @@ -31,11 +31,8 @@ void grouping_free_sum(RRDR *r) { void grouping_add_sum(RRDR *r, calculated_number value) { if(!isnan(value)) { struct grouping_sum *g = (struct grouping_sum *)r->internal.grouping_data; - - if(!g->count || calculated_number_fabs(value) > calculated_number_fabs(g->sum)) { - g->sum += value; - g->count++; - } + g->sum += value; + g->count++; } } |