From bad868701677e57e05e76e1810bfeb842fa67337 Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Tue, 22 Oct 2019 19:02:08 +0100 Subject: [PATCH] Changed ram units (module) --- modules/ram | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ram b/modules/ram index d4a0a36..9e80998 100755 --- a/modules/ram +++ b/modules/ram @@ -6,11 +6,11 @@ PREFIX=' ' get_ram() { - TOTAL_RAM=$(free -m | awk {'print $2'} | head -n 2 | tail -1) - FREE_RAM=$(free -m | awk {'print $3'} | head -n 2 | tail -1) + TOTAL_RAM=$(free -mh | awk {'print $2'} | head -n 2 | tail -1) + USED_RAM=$(free -mh | awk {'print $3'} | head -n 2 | tail -1) MB="MB" - echo "$PREFIX$FREE_RAM/$TOTAL_RAM$MB" + echo "$PREFIX$USED_RAM/$TOTAL_RAM" } get_ram