mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* bin/disk-*: use the POSIX output format
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
aaa17142c0
commit
eb2f759a8c
3 changed files with 6 additions and 5 deletions
|
@ -20,7 +20,7 @@
|
|||
PKG="byobu"
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
df -h
|
||||
df -h -P
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -35,5 +35,5 @@ fi
|
|||
# Default to /, but let users override
|
||||
[ -r "$HOME/.$PKG/disk" ] && MP=`cat "$HOME/.$PKG/disk"` || MP="/"
|
||||
|
||||
d=`df -h "$MP" | tail -n 1 | awk '{print $2}'`
|
||||
d=`df -h -P "$MP" | tail -n 1 | awk '{print $2}'`
|
||||
printf "\005{= MW}%sB%s\005{-}%s" "$d" "$comma" "$whitespace"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
PKG="byobu"
|
||||
|
||||
if [ "$1" = "--detail" ]; then
|
||||
df -h
|
||||
df -h -P
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -32,5 +32,5 @@ fi
|
|||
# Default to /, but let users override
|
||||
[ -r "$HOME/.$PKG/disk" ] && MP=`cat "$HOME/.$PKG/disk"` || MP="/"
|
||||
|
||||
used=`df -h "$MP" | tail -n 1 | sed "s/%.*$/%/" | sed "s/^.* //"`
|
||||
used=`df -h -P "$MP" | tail -n 1 | sed "s/%.*$/%/" | sed "s/^.* //"`
|
||||
printf "\005{= MW}%s\005{-}%s" "$used" "$whitespace"
|
||||
|
|
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -6,8 +6,9 @@ byobu (2.9) unreleased; urgency=low
|
|||
in iwconfig and ifconfig paths
|
||||
* bin/cpu-count: performance improvement, use getconf
|
||||
* bin/cpu-freq: performance improvement, simplify pipes
|
||||
* bin/disk-*: use the POSIX output format
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 08 Jun 2009 11:38:05 -0500
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 08 Jun 2009 11:40:33 -0500
|
||||
|
||||
byobu (2.8-0ubuntu1) karmic; urgency=low
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue