fix PHP 7.1 notices "non well formed numeric value" #52

This commit is contained in:
shevabam
2017-11-02 20:54:43 +01:00
parent f6dc271839
commit 725787bcf7
4 changed files with 5 additions and 2 deletions
+1
View File
@@ -17,6 +17,7 @@ if (!($total = shell_exec('grep MemTotal /proc/meminfo | awk \'{print $2}\'')))
{
$total = 0;
}
$total = (int)$total;
// Used
$used = $total - $free;