mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-04 14:28:03 +00:00
Merge pull request #646 from dylanaraps/mem-label
Memory: Change label to MiB from MB
This commit is contained in:
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}MB / ${mem_total}MB"
|
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
|
||||||
|
|
||||||
# Bars.
|
# Bars.
|
||||||
case "$memory_display" in
|
case "$memory_display" in
|
||||||
|
|||||||
Reference in New Issue
Block a user