From fae12fadf27b6af392dfa86ed0c7553edfd6b91a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 27 Jan 2017 14:29:19 +1100 Subject: [PATCH 1/2] Memory: Change label to MiB from MB --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 91a83e74..ad707f5e 100755 --- a/neofetch +++ b/neofetch @@ -1250,7 +1250,7 @@ get_memory() { mem_used="$((mem_total - mem_free))" ;; esac - memory="${mem_used}MB / ${mem_total}MB" + memory="${mem_used}MiB / ${mem_total}MiB" # Bars. case "$memory_display" in From 568f52c3b995e68ed92e52e920d27f8f860be092 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 27 Jan 2017 14:35:04 +1100 Subject: [PATCH 2/2] Memory: Show MB on OS that output the memory as Megabytes --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index ad707f5e..647cdad9 100755 --- a/neofetch +++ b/neofetch @@ -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}MiB / ${mem_total}MiB" + memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}" # Bars. case "$memory_display" in