mirror of https://github.com/mikaku/Monitorix.git
3.0: added support for 'port' graph
This commit is contained in:
parent
c14738ea2a
commit
288a26433c
|
@ -292,9 +292,9 @@ EOF
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if($g eq "port") {
|
if($g eq "port") {
|
||||||
for($n = 0; $n < $config{port_max} && $n < scalar(my @port_list = split(',', $config{port_list})); $n++) {
|
for($n = 0; $n < $config{port}->{max} && $n < scalar(my @port_list = split(',', $config{port}->{list})); $n++) {
|
||||||
my $num = trim($port_list[$n]);
|
my $num = trim($port_list[$n]);
|
||||||
my ($name) = split(',', $config{port_desc}->{$num});
|
my ($name) = (split(',', $config{port}->{desc}->{$num}))[0];
|
||||||
$gname = "_" . $g;
|
$gname = "_" . $g;
|
||||||
print(OUT " <option value='" . $gname . $n . "'>" . $config{graphs}->{$gname} . " " . $num . " (" . trim($name) . ")" . "</option>\n");
|
print(OUT " <option value='" . $gname . $n . "'>" . $config{graphs}->{$gname} . " " . $num . " (" . trim($name) . ")" . "</option>\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue