diff options
author | David Runge <dave@sleepmap.de> | 2016-04-22 22:49:28 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2016-04-22 22:49:28 +0200 |
commit | 6f931759d7ac10def3865abb699392b264836958 (patch) | |
tree | 18c70eb0a7f45f73e0f3cd1f25fc1c9c05258062 /bin/get_mem | |
parent | 32ed55a1ba24899a8a2ec0acd0ba4c21aa0dcd67 (diff) | |
download | dotfiles-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/get_mem')
-rwxr-xr-x | bin/get_mem | 3 |
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" |