summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2024-01-29 10:02:52 +0200
committerGitHub <noreply@github.com>2024-01-29 10:02:52 +0200
commitb84ccfa1ddaa6c5fbe6d7a5035125c6e38fd0439 (patch)
tree764641d9ceae3cf3b87b237c536724515d120d77
parent007f6ad4cea262ca904635facb332e2dbd81dd0d (diff)
apply the right prototype to instances (#16862)
-rw-r--r--health/health_prototypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/health/health_prototypes.c b/health/health_prototypes.c
index d808a4d756..6775ea56f6 100644
--- a/health/health_prototypes.c
+++ b/health/health_prototypes.c
@@ -516,7 +516,7 @@ static void health_prototype_apply_to_rrdset(RRDSET *st, RRD_ALERT_PROTOTYPE *ap
if(!prototype_matches_rrdset(st, t))
continue;
- if(rrdcalc_add_from_prototype(st->rrdhost, st, ap))
+ if(rrdcalc_add_from_prototype(st->rrdhost, st, t))
ap->_internal.uses++;
}
spinlock_unlock(&ap->_internal.spinlock);