make sure that the option 'default_option_when_all' defaults to 'System load'

This commit is contained in:
Jordi Sanfeliu 2020-10-26 12:14:10 +01:00
parent 15b15411c7
commit f08de56634
1 changed files with 2 additions and 1 deletions

View File

@ -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) {