aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/ram6
1 files 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