From 71f17950e80c06b4b5587384331c69c384b83ee6 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 20 Jul 2009 15:27:53 -0500 Subject: [PATCH] * bin/disk: unbold the first letter of the disk size units, match format of the mem status reporting Signed-off-by: Dustin Kirkland --- bin/disk | 2 +- debian/changelog | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/disk b/bin/disk index 875d164c..812a5862 100755 --- a/bin/disk +++ b/bin/disk @@ -30,4 +30,4 @@ case $MP in /dev/*) MP=`grep "$MP" /proc/mounts | awk '{print $2}'` ;; esac -df -h -P "$MP" | tail -n 1 | awk '{printf "\005{=b MW}%s\005{-}\005{= MW}B,%s\005{-} ", $2, $5}' +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}' diff --git a/debian/changelog b/debian/changelog index b155b49c..bcf7e4fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,10 @@ byobu (2.21) unreleased; urgency=low * byobu-launcher: drop "Launching byobu", since this ends up in the bash history, LP: #400275 + * bin/disk: unbold the first letter of the disk size units, match + format of the mem status reporting - -- Dustin Kirkland Mon, 20 Jul 2009 15:12:22 -0500 + -- Dustin Kirkland Mon, 20 Jul 2009 15:27:06 -0500 byobu (2.20-0ubuntu1) karmic; urgency=low