* bin/disk: fix disk units for <10GB disks

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-08-24 22:58:44 -05:00
commit 1913642dfc
2 changed files with 3 additions and 3 deletions

View file

@ -31,4 +31,4 @@ case $MP in
/dev/*) MP=`grep "$MP" /proc/mounts | awk '{print $2}'` ;;
esac
df -h -P "$MP" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9 ]\)/ \1/g" | awk '{printf "\005{=b MW}%d\005{-}\005{= MW}%sB,\005{-}\005{=b MW}%d\005{-}\005{= MW}%%\005{-} ", $1, $2, $3}'
df -h -P "$MP" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "\005{=b MW}%d\005{-}\005{= MW}%sB,\005{-}\005{=b MW}%d\005{-}\005{= MW}%%\005{-} ", $1, $2, $3}'

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
byobu (2.29) unreleased; urgency=low
* UNRELEASED
* bin/disk: fix disk units for <10GB disks
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 24 Aug 2009 15:25:15 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 24 Aug 2009 22:58:20 -0500
byobu (2.28-0ubuntu1) karmic; urgency=low