# | 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"}) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |