Commit 712500a1 authored by Andrew Titmuss's avatar Andrew Titmuss

moved removal of '.'* to the actual printing of infobar

parent c0a6886d
...@@ -1509,18 +1509,16 @@ getdisk () { ...@@ -1509,18 +1509,16 @@ getdisk () {
if [[ "$disk_used" == *"T" ]]; then if [[ "$disk_used" == *"T" ]]; then
disk_used=$(printf "%s\n" "${disk_used/T} * 1000" | bc) disk_used=$(printf "%s\n" "${disk_used/T} * 1000" | bc)
disk_used=${disk_used/'.'*}
fi fi
if [[ "$disk_total" == *"T" ]]; then if [[ "$disk_total" == *"T" ]]; then
disk_total=$(printf "%s\n" "${disk_total/T} * 1000" | bc) disk_total=$(printf "%s\n" "${disk_total/T} * 1000" | bc)
disk_total=${disk_total/'.'*}
fi fi
case "$disk_display" in case "$disk_display" in
"bar") disk="$(bar "${disk_used/'.'}" "${disk_total/'.'}")" ;; "bar") disk="$(bar "${disk_used/'.'*}" "${disk_total/'.'*}")" ;;
"infobar") disk+=" $(bar "${disk_used/'.'}" "${disk_total/'.'}")" ;; "infobar") disk+=" $(bar "${disk_used/'.'*}" "${disk_total/'.'*}")" ;;
"barinfo") disk="$(bar "${disk_used/'.'}" "${disk_total/'.'}") $disk" ;; "barinfo") disk="$(bar "${disk_used/'.'*}" "${disk_total/'.'*}") $disk" ;;
esac esac
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment