incremental-sum flipped (netdata does its calculations from now to the past)
Costa Tsaousis (ktsaou) committed
Jun 5, 2016 at 19:43 UTC
c9aaddeeb705f8ab6dfffd8bb0f80cca3a8d24ac
1 file changed
+1
-1
src/rrd2json.c
+1
-1
@@ -1485,7 +1485,7 @@ RRDR *rrd2rrdr(RRDSET *st, long points, long long after, long long before, int g
1485
if(unlikely(slot == start_at_slot))
1486
last_values[c] = value;
1487
1488
- group_values[c] += value - last_values[c];
1488
+ group_values[c] += last_values[c] - value;
1489
last_values[c] = value;
1490
break;
1491
}