mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-11 02:08:53 -04:00
fix PHP 7.1 notices "non well formed numeric value" #52
This commit is contained in:
@@ -17,6 +17,7 @@ if (!($total = shell_exec('grep MemTotal /proc/meminfo | awk \'{print $2}\'')))
|
||||
{
|
||||
$total = 0;
|
||||
}
|
||||
$total = (int)$total;
|
||||
|
||||
// Used
|
||||
$used = $total - $free;
|
||||
|
||||
Reference in New Issue
Block a user