fix PHP 7.1 notices "non well formed numeric value"

This commit is contained in:
shevabam 2020-12-15 20:52:58 +01:00
parent 16410f396a
commit a6a3107f88
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ if ($frequency == 'N.A')
{
if ($f = shell_exec('cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq'))
{
$f = $f / 1000;
$f = (int)$f / 1000;
$frequency = $f.' MHz';
}
}