From 6f931759d7ac10def3865abb699392b264836958 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 22 Apr 2016 22:49:28 +0200 Subject: bin/get_mem: Showing memory in megabytes only, to not break the percentage calculation. --- bin/get_mem | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/get_mem b/bin/get_mem index 1709d75..fa2a453 100755 --- a/bin/get_mem +++ b/bin/get_mem @@ -3,6 +3,7 @@ set -euo pipefail IFS=$'\n\t' mem_output="" -mem_output="$(free -hm| grep "Mem:"| awk '{printf $3 "/" $2 " ("} {printf ("%1.3f", $3/$2)} {printf ")"}')" + +mem_output="$(free -m| grep "Mem:"| awk '{printf $3 "/" $2 " ("} {printf ("%1.3f", $3/$2)} {printf ")"}')" echo "$mem_output" -- cgit v1.2.3-70-g09d2