mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/lib/byobu/swap: LP: #843446
- make swap status behave like disk and memory (display usage even if zero)
This commit is contained in:
parent
41d25abd31
commit
db78f729c2
2 changed files with 3 additions and 1 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -19,6 +19,9 @@ byobu (4.33) unreleased; urgency=low
|
||||||
usr/share/man/man1/byobu.1: LP: #836090
|
usr/share/man/man1/byobu.1: LP: #836090
|
||||||
- fix handling of byobu backend (screen|tmux) handling; thanks to
|
- fix handling of byobu backend (screen|tmux) handling; thanks to
|
||||||
lp:~zorun-42 for the fix
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Aug 2011 19:07:32 -0500
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ __swap() {
|
||||||
[ "${stotal:-0}" = "0" ] && return 0
|
[ "${stotal:-0}" = "0" ] && return 0
|
||||||
mem=${stotal}
|
mem=${stotal}
|
||||||
f=$(((100*($stotal-$sfree))/$stotal))
|
f=$(((100*($stotal-$sfree))/$stotal))
|
||||||
[ "$f" = "0" ] && return 0
|
|
||||||
if [ $mem -ge 1048576 ]; then
|
if [ $mem -ge 1048576 ]; then
|
||||||
fpdiv "${mem}" 1048576 1
|
fpdiv "${mem}" 1048576 1
|
||||||
mem=${_RET}
|
mem=${_RET}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue