ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/statgrab/statgrab-make-mrtg-config.in
(Generate patch)

Comparing projects/libstatgrab/src/statgrab/statgrab-make-mrtg-config.in (file contents):
Revision 1.8 by ats, Mon Aug 23 15:04:50 2004 UTC vs.
Revision 1.9 by ats, Sat Oct 23 14:36:51 2004 UTC

# 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          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines