* usr/lib/byobu/swap: LP: #843446

- make swap status behave like disk and memory (display usage even if
    zero)
This commit is contained in:
Dustin Kirkland 2011-09-08 11:53:06 -07:00
commit db78f729c2
2 changed files with 3 additions and 1 deletions

3
debian/changelog vendored
View file

@ -19,6 +19,9 @@ byobu (4.33) unreleased; urgency=low
usr/share/man/man1/byobu.1: LP: #836090
- fix handling of byobu backend (screen|tmux) handling; thanks to
lp:~zorun-42 for the fix
* usr/lib/byobu/swap: LP: #843446
- make swap status behave like disk and memory (display usage even if
zero)
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Aug 2011 19:07:32 -0500

View file

@ -38,7 +38,6 @@ __swap() {
[ "${stotal:-0}" = "0" ] && return 0
mem=${stotal}
f=$(((100*($stotal-$sfree))/$stotal))
[ "$f" = "0" ] && return 0
if [ $mem -ge 1048576 ]; then
fpdiv "${mem}" 1048576 1
mem=${_RET}