mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed stupid typo on operation to show total available memory
(cherry picked from commit cfc0583167ccdfb345df656e298334af54b94c01)
This commit is contained in:
parent
94fc0c72bb
commit
bc2d8b3957
@ -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