Merge pull request #140 from iandrewt/progress_bar_fixes
fixed a few issues with the progress bars
This commit is contained in:
commit
749ad0464b
8
neofetch
8
neofetch
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue