Merge pull request #140 from iandrewt/progress_bar_fixes

fixed a few issues with the progress bars
This commit is contained in:
Dylan Araps 2016-03-12 20:43:18 +11:00
commit 749ad0464b
1 changed files with 5 additions and 3 deletions

View File

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