fix for the spikes when restarting netdata
Costa Tsaousis (ktsaou) committed
May 24, 2014 at 07:23 UTC
cf41f07a7706f04c69fef554ea00d80923dbf68e
1 file changed
+3
-1
netdata.c
+3
-1
@@ -1321,11 +1321,13 @@ RRD_STATS *rrd_stats_create(const char *type, const char *id, const char *name,
1321
1322
st->priority = config_get_number(st->id, "priority", priority);
1323
st->enabled = enabled;
1324
-
1324
+
1325
+ st->isdetail = 0;
1326
st->debug = 0;
1327
1328
st->last_collected_time.tv_sec = 0;
1329
st->last_collected_time.tv_usec = 0;
1330
+ st->counter_done = 0;
1331
1332
pthread_rwlock_init(&st->rwlock, NULL);
1333
pthread_rwlock_wrlock(&root_rwlock);