aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-22 19:14:56 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-22 19:14:56 +0100
commitf5a2b0608178d33a492a3c0aeed585984ffa917a (patch)
tree6cc73533ba5782c3b1e9c30d9a10039367276559 /modules
parentbad868701677e57e05e76e1810bfeb842fa67337 (diff)
Changed ram units (module)
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/ram4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/ram b/modules/ram
index 9e80998..f7b1c40 100755
--- a/modules/ram
+++ b/modules/ram
@@ -6,8 +6,8 @@ PREFIX=' '
get_ram()
{
- TOTAL_RAM=$(free -mh | awk {'print $2'} | head -n 2 | tail -1)
- USED_RAM=$(free -mh | awk {'print $3'} | head -n 2 | tail -1)
+ TOTAL_RAM=$(free -mh --si | awk {'print $2'} | head -n 2 | tail -1)
+ USED_RAM=$(free -mh --si | awk {'print $3'} | head -n 2 | tail -1)
MB="MB"
echo "$PREFIX$USED_RAM/$TOTAL_RAM"