Merge pull request #7 from belomaxorka/fixed-deprecated-method-cpu_idle

Fixed deprecated in system.php line 1081
This commit is contained in:
Sergei 2023-03-05 09:00:12 +03:00 committed by GitHub
commit e30e4039bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1078,7 +1078,7 @@
return false;
}
public static function cpu_idle($pros_stat = array(), $unit, $fcpu = false, $ctrl = false)
public static function cpu_idle($pros_stat = array(), $unit = false, $fcpu = false, $ctrl = false)
{
return sys::cpu_get_idle(sys::parse_cpu($pros_stat[0]), sys::parse_cpu($pros_stat[1]), $unit, $fcpu, $ctrl);
}