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 @URL;
|
||||||
my @TEMP_LIST;
|
my @TEMP_LIST;
|
||||||
|
|
||||||
if($val eq "all") {
|
if($val =~ m/group[0-9]*/) {
|
||||||
for($n = 0; $n < scalar(@REMOTEHOST_LIST); $n += 2) {
|
|
||||||
push(@HOST, $REMOTEHOST_LIST[$n]);
|
|
||||||
push(@URL, $REMOTEHOST_LIST[$n + 1]);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$gnum = substr($val, 5, length($val));
|
$gnum = substr($val, 5, length($val));
|
||||||
@TEMP_LIST = split(':', $REMOTEGROUP_LIST[2 * $gnum + 1]);
|
@TEMP_LIST = split(':', $REMOTEGROUP_LIST[2 * $gnum + 1]);
|
||||||
$gnum = scalar(@TEMP_LIST);
|
$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;
|
$MULTIHOST_IMGS_PER_ROW = 1 unless $MULTIHOST_IMGS_PER_ROW > 1;
|
||||||
|
|
Loading…
Reference in New Issue