From 56ac19d8afd49f200fb2bd954d2f5bcd56c920cf Mon Sep 17 00:00:00 2001 From: thiagoftsm Date: Fri, 3 Apr 2020 10:26:51 +0000 Subject: cove355076: Config per section (#8588) This commit brings the possibility to search an option directly when we already have a section --- streaming/rrdpush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'streaming') diff --git a/streaming/rrdpush.c b/streaming/rrdpush.c index d99a2be19d..cd7b3b93e2 100644 --- a/streaming/rrdpush.c +++ b/streaming/rrdpush.c @@ -174,7 +174,7 @@ int configured_as_master() { uuid_t uuid; if (uuid_parse(section->name, uuid) != -1 && - appconfig_get_boolean(&stream_config, section->name, "enabled", 0)) { + appconfig_get_boolean_by_section(section, "enabled", 0)) { is_master = 1; break; } -- cgit v1.2.3