| # | Line 280 | Line 280 | sub include_top() { | |
|---|---|---|
| 280 | $free/=1024 if $2 eq "K"; | |
| 281 | &print_pair(0, "packet.memory.free", int($free)); | |
| 282 | ||
| 283 | < | $top =~ /Swap:.*?([0-9]]+)([KMG])\s+av/; |
| 283 | > | $top =~ /Swap:.*?([0-9]+)([KMG])\s+av/; |
| 284 | my($swap_total) = $1; | |
| 285 | $swap_total*=1024 if $2 eq "G"; | |
| 286 | $swap_total/=1024 if $2 eq "K"; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |