Memory: Show MB on OS that output the memory as Megabytes
This commit is contained in:
parent
fae12fadf2
commit
568f52c3b9
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -1248,9 +1248,10 @@ get_memory() {
|
||||||
mem_total="${mem_stat[11]/.*}"
|
mem_total="${mem_stat[11]/.*}"
|
||||||
mem_free="${mem_stat[16]/.*}"
|
mem_free="${mem_stat[16]/.*}"
|
||||||
mem_used="$((mem_total - mem_free))"
|
mem_used="$((mem_total - mem_free))"
|
||||||
|
mem_label="MB"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
memory="${mem_used}MiB / ${mem_total}MiB"
|
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
|
||||||
|
|
||||||
# Bars.
|
# Bars.
|
||||||
case "$memory_display" in
|
case "$memory_display" in
|
||||||
|
|
Loading…
Reference in a new issue