Fixed stupid typo on operation to show total available memory

This commit is contained in:
Sancho Lerena 2015-05-14 19:43:29 +02:00
parent d9fb4b9b1b
commit cfc0583167
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ my $freemem=`cat /proc/meminfo | grep 'MemFree' | awk '{ print \$2 } '`;
my $cached=`cat /proc/meminfo | grep '^Cached:' | awk '{ print \$2 } '`;
my $cachedswap=`cat /proc/meminfo | grep '^SwapCached:' | awk '{ print \$2 }'`;
my $available=$freemem+$cached+$cachedwap;
my $available_percent = floor(($available / $STOTAL)*100);
my $available_percent = floor(($available / $TOTAL)*100);
print "<module>\n";