mirror of https://github.com/mikaku/Monitorix.git
fixed a bug in multihost introduced with groups code
This commit is contained in:
parent
481ac7b108
commit
9ff2124cd8
|
@ -13309,12 +13309,7 @@ sub multihost {
|
|||
my @URL;
|
||||
my @TEMP_LIST;
|
||||
|
||||
if($val eq "all") {
|
||||
for($n = 0; $n < scalar(@REMOTEHOST_LIST); $n += 2) {
|
||||
push(@HOST, $REMOTEHOST_LIST[$n]);
|
||||
push(@URL, $REMOTEHOST_LIST[$n + 1]);
|
||||
}
|
||||
} else {
|
||||
if($val =~ m/group[0-9]*/) {
|
||||
$gnum = substr($val, 5, length($val));
|
||||
@TEMP_LIST = split(':', $REMOTEGROUP_LIST[2 * $gnum + 1]);
|
||||
$gnum = scalar(@TEMP_LIST);
|
||||
|
@ -13327,6 +13322,11 @@ sub multihost {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for($n = 0; $n < scalar(@REMOTEHOST_LIST); $n += 2) {
|
||||
push(@HOST, $REMOTEHOST_LIST[$n]);
|
||||
push(@URL, $REMOTEHOST_LIST[$n + 1]);
|
||||
}
|
||||
}
|
||||
|
||||
$MULTIHOST_IMGS_PER_ROW = 1 unless $MULTIHOST_IMGS_PER_ROW > 1;
|
||||
|
|
Loading…
Reference in New Issue