@cryptotaxi247 / netdata-1 / commits / b84ccfa1d

apply the right prototype to instances (#16862)

Costa Tsaousis committed Jan 29, 2024 at 10:02 UTC b84ccfa1ddaa6c5fbe6d7a5035125c6e38fd0439
1 file changed +1 -1
health/health_prototypes.c
+1 -1
@@ -516,7 +516,7 @@ static void health_prototype_apply_to_rrdset(RRDSET *st, RRD_ALERT_PROTOTYPE *ap
516 if(!prototype_matches_rrdset(st, t))
517 continue;
518
519 - if(rrdcalc_add_from_prototype(st->rrdhost, st, ap))
519 + if(rrdcalc_add_from_prototype(st->rrdhost, st, t))
520 ap->_internal.uses++;
521 }
522 spinlock_unlock(&ap->_internal.spinlock);