Changed ram units (module)

This commit is contained in:
Manuel Palenzuela 2019-10-22 19:14:56 +01:00
parent bad8687016
commit f5a2b06081

View file

@ -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"