usr/lib/byobu/disk_io: don't show disk_io if rate = 0

This commit is contained in:
Dustin Kirkland 2011-02-01 11:18:19 -08:00
commit 7608e8eb34
2 changed files with 2 additions and 0 deletions

1
debian/changelog vendored
View file

@ -1,6 +1,7 @@
byobu (3.28) unreleased; urgency=low
* usr/lib/byobu/wifi_quality: don't show wifi-quality if connectivity == 0
* usr/lib/byobu/disk_io: don't show disk_io if rate = 0
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 28 Jan 2011 17:12:27 -0600

View file

@ -66,5 +66,6 @@ for i in "read" "write"; do
unit="MB/s"
fi
fi
[ "$rate" != "0" ] || continue
printf "$(color b M W)$symbol$rate$(color -)$(color M W)$unit$(color -) "
done