mirror of https://github.com/mikaku/Monitorix.git
make sure that the option 'default_option_when_all' defaults to 'System load'
This commit is contained in:
parent
15b15411c7
commit
f08de56634
|
@ -163,7 +163,8 @@ sub create_index {
|
|||
# The following small JavaScript function is intended to avoid to select to view
|
||||
# accidentally (unless explicitly selected by the user) a huge amount of remote
|
||||
# images that will hang the browser for a while.
|
||||
$text_when_all = $config{multihost}->{default_option_when_all} || 0;
|
||||
$text_when_all = $config{multihost}->{default_option_when_all} || "";
|
||||
$text_when_all = "System load" if !$text_when_all;
|
||||
my @match = grep { $config{graphs}{$_} eq $text_when_all } keys %{$config{graphs}};
|
||||
$value_when_all = $match[0] || "";
|
||||
if(!$value_when_all) {
|
||||
|
|
Loading…
Reference in New Issue