3.0: added support for 'port' graph

This commit is contained in:
Jordi Sanfeliu 2012-12-14 11:41:26 +01:00
parent c14738ea2a
commit 288a26433c
1 changed files with 2 additions and 2 deletions

View File

@ -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");
} }