Suppress warning on load check
This commit is contained in:
parent
abf52c0c11
commit
196dda9487
|
@ -442,7 +442,7 @@ class System
|
||||||
*/
|
*/
|
||||||
public static function getLoadAvg(): array
|
public static function getLoadAvg(): array
|
||||||
{
|
{
|
||||||
if (is_readable('/proc/loadavg')) {
|
if (@is_readable('/proc/loadavg')) {
|
||||||
$content = @file_get_contents('/proc/loadavg');
|
$content = @file_get_contents('/proc/loadavg');
|
||||||
if (empty($content)) {
|
if (empty($content)) {
|
||||||
$content = shell_exec('cat /proc/loadavg');
|
$content = shell_exec('cat /proc/loadavg');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user