158 |
|
|
159 |
|
foreach my $net (sort keys %nets) { |
160 |
|
my $name = $stats{"net.$net.interface_name"}; |
161 |
< |
# FIXME should be able to discover interface speed |
162 |
< |
entry("Network interface $name IO", "net.$net.rx", "net.$net.tx", 100*$mib, "Network IO", "KiB/s", "rx", "tx", 0, $KIBIBYTES); |
161 |
> |
my $speed = int($stats{"net.$net.speed"}); |
162 |
> |
$speed = 100 if $speed == 0; |
163 |
> |
entry("Network interface $name IO", "net.$net.rx", "net.$net.tx", $speed*$mib, "Network IO", "KiB/s", "rx", "tx", 0, $KIBIBYTES); |
164 |
|
} |
165 |
|
|
166 |
|
if (exists $toplevel{"page"}) { |