fix PHP 7.1 notices "non well formed numeric value"
This commit is contained in:
parent
16410f396a
commit
a6a3107f88
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue