X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FSystem.php;h=e0c23e55b9e4a9c1475cceee40bfbdb0abefddcd;hb=82972744a9cb77ca3d2f8db289e97fee2709ebd7;hp=8a8f273a8db7fdf2c9ef5402f22a4e19899f20fa;hpb=26e0469de77aeae2311e8b50b5e64b58a388ca01;p=friendica.git diff --git a/src/Core/System.php b/src/Core/System.php index 8a8f273a8d..e0c23e55b9 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -442,10 +442,10 @@ 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'); + $content = shell_exec('uptime | sed "s/.*averages*: //" | sed "s/,//g"'); } }