From: Michael Date: Wed, 19 Oct 2022 04:49:57 +0000 (+0000) Subject: Suppress warning on load check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=196dda948773a7076633bd2d1bdc05219fa571f2;p=friendica.git Suppress warning on load check --- diff --git a/src/Core/System.php b/src/Core/System.php index 8a8f273a8d..b2da78f1b3 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -442,7 +442,7 @@ class System */ public static function getLoadAvg(): array { - if (is_readable('/proc/loadavg')) { + if (@is_readable('/proc/loadavg')) { $content = @file_get_contents('/proc/loadavg'); if (empty($content)) { $content = shell_exec('cat /proc/loadavg');