Commit 4af31a0f authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #646 from dylanaraps/mem-label

Memory: Change label to MiB from MB
parents c4869f5e 568f52c3
......@@ -1248,9 +1248,10 @@ get_memory() {
mem_total="${mem_stat[11]/.*}"
mem_free="${mem_stat[16]/.*}"
mem_used="$((mem_total - mem_free))"
mem_label="MB"
;;
esac
memory="${mem_used}MB / ${mem_total}MB"
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
# Bars.
case "$memory_display" in
......
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