diff --git a/debian/changelog b/debian/changelog index 0a41a183..540de23e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -13,6 +13,8 @@ byobu (4.42) unreleased; urgency=low - add unicode characters for KB/MB/GB/GHz * usr/lib/byobu/wifi_quality: - drop comma, save a char + * usr/lib/byobu/.constants, usr/lib/byobu/network: + - save a few more chars, drop the "ps" per second -- Dustin Kirkland Fri, 14 Oct 2011 14:53:51 -0500 diff --git a/usr/lib/byobu/.constants b/usr/lib/byobu/.constants index 5d308c48..8441b197 100755 --- a/usr/lib/byobu/.constants +++ b/usr/lib/byobu/.constants @@ -42,7 +42,7 @@ if [ "$UTF8" = "1" ] || [ "$BYOBU_BACKEND" = "tmux" ]; then ICON_MHz="㎒" ICON_GHz="㎓" #ICON_MBPS="㏔㎰" - ICON_MBPS="Mbps" + ICON_MBPS="Mb" else ICON_C="C" ICON_F="F" diff --git a/usr/lib/byobu/network b/usr/lib/byobu/network index 0cdf0ead..c324bd8f 100755 --- a/usr/lib/byobu/network +++ b/usr/lib/byobu/network @@ -34,7 +34,7 @@ __network() { [ -n "$NETWORK_THRESHOLD" ] || NETWORK_THRESHOLD=20 OIFS=$IFS for i in up down; do - unit="kbps" + unit="kb" case $i in up) symbol="$ICON_UP" ;; down) symbol="$ICON_DN" ;; @@ -74,11 +74,11 @@ __network() { if [ "$rate" -gt 1000000 ]; then fpdiv "$rate" 1000000 1 rate=${_RET} - unit="Gbps" + unit="Gb" elif [ "$rate" -gt 1000 ]; then fpdiv "$rate" 1000 1 rate=${_RET} - unit="Mbps" + unit="Mb" fi ;; esac