* usr/lib/byobu/mem_available:

- fix MB display bug
This commit is contained in:
Dustin Kirkland 2011-05-25 16:02:39 -05:00
commit 02cc571409
2 changed files with 4 additions and 3 deletions

4
debian/changelog vendored
View file

@ -1,4 +1,4 @@
byobu (4.3) unreleased; urgency=low byobu (4.3-0ubuntu1) oneiric; urgency=low
[ Dustin Kirkland ] [ Dustin Kirkland ]
* usr/lib/byobu/uptime: fix string bug in uptime introduced by smoser's * usr/lib/byobu/uptime: fix string bug in uptime introduced by smoser's
@ -8,6 +8,8 @@ byobu (4.3) unreleased; urgency=low
- fix some of the messaging - fix some of the messaging
- add a welcome message with the toggle on/off info - add a welcome message with the toggle on/off info
- fix the motd display at auto launch, which was broken recently - fix the motd display at auto launch, which was broken recently
* usr/lib/byobu/mem_available:
- fix MB display bug
[ Scott Moser ] [ Scott Moser ]
* usr/lib/byobu/.shutil: fix rounding across a decimal point in fpdiv() * usr/lib/byobu/.shutil: fix rounding across a decimal point in fpdiv()

View file

@ -37,8 +37,7 @@ mem_available_info() {
mem=${_RET} mem=${_RET}
unit="GB" unit="GB"
elif [ $mem -ge 1024 ]; then elif [ $mem -ge 1024 ]; then
mem=$(echo "$mem" | awk '{ printf "%.0f", $1 / 1024 }') fpdiv "$mem" 1024 0
fpdiv "$mem" 1024 1
mem=${_RET} mem=${_RET}
unit="MB" unit="MB"
else else