Commit 2ac5c9e7 authored by Andrew Titmuss's avatar Andrew Titmuss

made memory_bar easier to use

parent 78e78a08
...@@ -1130,12 +1130,11 @@ getmemory () { ...@@ -1130,12 +1130,11 @@ getmemory () {
esac esac
# Progress bars # Progress bars
if [ "$memory_bar" == "on" ]; then case "$memory_info_bar" in
case "$memory_info" in "bar") memory="$(bar "${memused}" "${memtotal}")" ;;
"off") memory=" $(bar "$memused" "$memtotal")" ;; "infobar") memory="${memory} $(bar "${memused}" "${memtotal}")" ;;
*) memory+=" $(bar "$memused" "$memtotal")" ;; "barinfo") memory="$(bar "${memused}" "${memtotal}") ${memory}" ;;
esac esac
fi
} }
# }}} # }}}
......
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