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.9 by ats, Sat Oct 23 14:36:51 2004 UTC vs.
Revision 1.10 by tdb, Thu Mar 13 10:29:18 2008 UTC

# Line 184 | Line 184 | sub main () {
184  
185          if (exists $toplevel{"swap"}) {
186                  my $swapsize = $stats{"swap.total"};
187 <                entry("Swap usage", "swap.used", undef, $swapsize, "Swap usage", "KiB", "used", undef, 1, $KIBIBYTES);
187 >                if ($swapsize ne "0") {
188 >                        entry("Swap usage", "swap.used", undef, $swapsize, "Swap usage", "KiB", "used", undef, 1, $KIBIBYTES);
189 >                }
190          }
191  
192          if (exists $toplevel{"user"}) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines