# | Line 162 | Line 162 | sub main () { | |
---|---|---|
162 | $speed = 100 if $speed == 0; | |
163 | ||
164 | # The speed is reported in Mbit/s; we want KiB/s. | |
165 | < | $speed = ($speed * 1000000) / (8 * $kib); |
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 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |