mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2025-07-15 23:05:17 -04:00
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…
x
Reference in New Issue
Block a user