diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-06-05 19:43:54 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-06-05 19:43:54 +0300 |
commit | c9aaddeeb705f8ab6dfffd8bb0f80cca3a8d24ac (patch) | |
tree | f750836377bdefcbeb13a0105b9c29c9729a42d0 /src/rrd2json.c | |
parent | c079d8bb77cf875c98f72f559204136c75f19705 (diff) |
incremental-sum flipped (netdata does its calculations from now to the past)
Diffstat (limited to 'src/rrd2json.c')
-rw-r--r-- | src/rrd2json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rrd2json.c b/src/rrd2json.c index c146ee8b4b..7735d56fb5 100644 --- a/src/rrd2json.c +++ b/src/rrd2json.c @@ -1485,7 +1485,7 @@ RRDR *rrd2rrdr(RRDSET *st, long points, long long after, long long before, int g if(unlikely(slot == start_at_slot)) last_values[c] = value; - group_values[c] += value - last_values[c]; + group_values[c] += last_values[c] - value; last_values[c] = value; break; } |