From cb85cbf44f3d5f2d23420c2b3e204c4fe09500a5 Mon Sep 17 00:00:00 2001 From: Frederic-Philippe Metz Date: Tue, 21 Apr 2015 16:15:16 +0200 Subject: [PATCH] Fixed wrong Zeroing of stats member --- daemon/graphite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/graphite.c b/daemon/graphite.c index 4ead81427..14fcd1bb1 100644 --- a/daemon/graphite.c +++ b/daemon/graphite.c @@ -146,8 +146,8 @@ int send_graphite_data() { mutex_lock(&cm->totalstats_interval.total_average_lock); ts.total_average_call_dur = cm->totalstats_interval.total_average_call_dur; ts.total_managed_sess = cm->totalstats_interval.total_managed_sess; - ZERO(ts.total_average_call_dur); - ZERO(ts.total_managed_sess); + ZERO(cm->totalstats_interval.total_average_call_dur); + ZERO(cm->totalstats_interval.total_managed_sess); mutex_unlock(&cm->totalstats_interval.total_average_lock); if (graphite_prefix!=NULL) { rc = sprintf(ptr,"%s.",graphite_prefix); ptr += rc; }