fixed to not treat option 'graph_name' as special as it ends up duplicating graphs

This commit is contained in:
Jordi Sanfeliu 2021-08-31 09:18:07 +02:00
parent a64381853b
commit 1f44f69b84
1 changed files with 6 additions and 5 deletions

View File

@ -602,11 +602,12 @@ if($config{include_dir} && opendir(DIR, $config{include_dir})) {
next;
}
# graph_name option is special
if($key eq "graph_name") {
$config{graph_name} .= ", $val";
delete $config_inc{graph_name};
next;
}
#if($key eq "graph_name") {
# $config{graph_name} .= ", $val";
# delete $config_inc{$key};
# next;
#}
# one level options
$config{$key} = $val;
delete $config_inc{$key};