fixed a few issues with the progress bars

This commit is contained in:
Andrew Titmuss 2016-03-12 20:38:53 +11:00
parent 1fd64f5bea
commit d37dd86cb5

View file

@ -1399,11 +1399,13 @@ getdisk () {
disk="${disk_used} / ${disk_total} (${disk_total_per})" disk="${disk_used} / ${disk_total} (${disk_total_per})"
if [ "$disk_bar" == "on" ]; then if [ "$disk_bar" == "on" ]; then
disk_used=${disk_used/G}
disk_used=${disk_used/T} disk_used=${disk_used/T}
disk_total=${disk_total/G}
disk_total=${disk_total/T} disk_total=${disk_total/T}
case "$disk_info" in case "$disk_info" in
"off") disk="$disk_total_per $(bar "${disk_used/'.'}" "${disk_total/'.'}")" ;; "off") disk="$(bar "${disk_used/'.'}" "${disk_total/'.'}")" ;;
*) disk+=" $(bar "${disk_used/'.'}" "${disk_total/'.'}")" ;; *) disk+=" $(bar "${disk_used/'.'}" "${disk_total/'.'}")" ;;
esac esac
fi fi
@ -1496,8 +1498,8 @@ getbattery () {
if [ "$battery_bar" == "on" ]; then if [ "$battery_bar" == "on" ]; then
case "$battery_info" in case "$battery_info" in
"off") battery+=" $(bar ${battery/'%'} 100)" ;; "off") battery="$(bar ${battery/'%'} 100)" ;;
*) battery="$(bar ${battery/'%'} 100)" ;; *) battery+=" $(bar ${battery/'%'} 100)" ;;
esac esac
fi fi
} }