| 160 |  | my $name = $stats{"net.$net.interface_name"}; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 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); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 163 | > |  | 
 
 
 
 
 | 164 | > | # The speed is reported in Mbit/s; we want KiB/s. | 
 
 
 
 
 | 165 | > | $speed = int(($speed * 1000000) / (8 * $kib)); | 
 
 
 
 
 | 166 | > |  | 
 
 
 
 
 | 167 | > | entry("Network interface $name IO", "net.$net.rx", "net.$net.tx", $speed, "Network IO", "KiB/s", "rx", "tx", 0, $KIBIBYTES); | 
 
 
 
 
 
 
 
 
 
 
 | 168 |  | } | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 169 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 170 |  | if (exists $toplevel{"page"}) { |