mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Fixed stupid typo on operation to show total available memory
This commit is contained in:
parent
d9fb4b9b1b
commit
cfc0583167
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user