1
0
mirror of https://github.com/netdata/netdata.git synced 2021-06-06 23:03:21 +03:00

health: fix alarm-line-charts matching (#11204)

This commit is contained in:
Ilya Mashchenko
2021-06-02 10:19:04 +03:00
committed by GitHub
parent 4e130e2b90
commit 428f5d0012

View File

@@ -45,9 +45,7 @@ static int rrdcalctemplate_is_there_label_restriction(RRDCALCTEMPLATE *rt, RRDH
}
static inline int rrdcalctemplate_test_additional_restriction(RRDCALCTEMPLATE *rt, RRDSET *st) {
if (rt->charts_pattern &&
!(simple_pattern_matches(rt->charts_pattern, st->id) ||
simple_pattern_matches(rt->charts_pattern, st->name)))
if (rt->charts_pattern && !simple_pattern_matches(rt->charts_pattern, st->name))
return 0;
if (rt->family_pattern && !simple_pattern_matches(rt->family_pattern, st->family))