aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-04-22 22:49:28 +0200
committerDavid Runge <dave@sleepmap.de>2016-04-22 22:49:28 +0200
commit6f931759d7ac10def3865abb699392b264836958 (patch)
tree18c70eb0a7f45f73e0f3cd1f25fc1c9c05258062 /bin
parent32ed55a1ba24899a8a2ec0acd0ba4c21aa0dcd67 (diff)
downloaddotfiles-6f931759d7ac10def3865abb699392b264836958.tar.gz
dotfiles-6f931759d7ac10def3865abb699392b264836958.tar.bz2
dotfiles-6f931759d7ac10def3865abb699392b264836958.tar.xz
dotfiles-6f931759d7ac10def3865abb699392b264836958.zip
bin/get_mem: Showing memory in megabytes only, to not break the percentage calculation.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/get_mem3
1 files changed, 2 insertions, 1 deletions
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"