summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2022-11-03 11:50:31 +0200
committerGitHub <noreply@github.com>2022-11-03 11:50:31 +0200
commitc270b6067bc91233696dc038c6356c1e384e13cf (patch)
tree2dc71f6d43762daf552c69d7223a1f36c8c16e56 /streaming
parent94c708fc39ca07eaebacd8c955be2c791d346fdc (diff)
recalculate last_collected_total (#13945)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/replication.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/streaming/replication.c b/streaming/replication.c
index d88649c55d..b841d6a3d4 100644
--- a/streaming/replication.c
+++ b/streaming/replication.c
@@ -143,11 +143,9 @@ static void replicate_chart_collection_state(BUFFER *wb, RRDSET *st) {
}
rrddim_foreach_done(rd);
- buffer_sprintf(wb, PLUGINSD_KEYWORD_REPLAY_RRDSET_STATE " %llu %llu " TOTAL_NUMBER_FORMAT " " TOTAL_NUMBER_FORMAT "\n",
+ buffer_sprintf(wb, PLUGINSD_KEYWORD_REPLAY_RRDSET_STATE " %llu %llu\n",
(usec_t)st->last_collected_time.tv_sec * USEC_PER_SEC + (usec_t)st->last_collected_time.tv_usec,
- (usec_t)st->last_updated.tv_sec * USEC_PER_SEC + (usec_t)st->last_updated.tv_usec,
- st->last_collected_total,
- st->collected_total
+ (usec_t)st->last_updated.tv_sec * USEC_PER_SEC + (usec_t)st->last_updated.tv_usec
);
}