bug fix: re-enable alarms about not-collected metrics
Costa Tsaousis (ktsaou) committed
Nov 6, 2016 at 18:56 UTC
a2828831262b0d0dd06f0114a8185918e17d1fbf
1 file changed
+1
-1
src/health.c
+1
-1
@@ -2578,7 +2578,7 @@ static inline int rrdcalc_isrunnable(RRDCALC *rc, time_t now, time_t *next_run)
2578
time_t first = rrdset_first_entry_t(rc->rrdset);
2579
time_t last = rrdset_last_entry_t(rc->rrdset);
2580
2581
- if(now + update_every < first || now - update_every > last) {
2581
+ if(unlikely(now + update_every < first /* || now - update_every > last */)) {
2582
debug(D_HEALTH
2583
, "Health not examining alarm '%s.%s' yet (wanted time is out of bounds - we need %lu but got %lu - %lu)."
2584
, rc->chart ? rc->chart : "NOCHART", rc->name, (unsigned long) now, (unsigned long) first