@cryptotaxi247 / netdata-1 / commits / ae19e6855

properly reset green and red thresholds after health configuration reload

Costa Tsaousis committed Aug 21, 2016 at 00:35 UTC ae19e6855037e417d555362af7a57dc340c32a1c
1 file changed +6 -4
src/health.c
+6 -4
@@ -1385,17 +1385,19 @@ void health_reload(void) {
1385 health_free_all_nolock(&localhost);
1386 rrdhost_unlock(&localhost);
1387
1388 + RRDSET *st;
1389 + for(st = localhost.rrdset_root; st ; st = st->next) {
1390 + st->green = NAN;
1391 + st->red = NAN;
1392 + }
1393 +
1394 rrdhost_rwlock(&localhost);
1395 health_readdir(path);
1396 rrdhost_unlock(&localhost);
1397
1392 - RRDSET *st;
1398 for(st = localhost.rrdset_root; st ; st = st->next) {
1399 rrdhost_rwlock(&localhost);
1400
1396 - st->green = NAN;
1397 - st->red = NAN;
1398 -
1401 rrdsetcalc_link_matching(st);
1402 rrdcalctemplate_link_matching(st);
1403