X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FSystem.php;h=e0c23e55b9e4a9c1475cceee40bfbdb0abefddcd;hb=82972744a9cb77ca3d2f8db289e97fee2709ebd7;hp=b2da78f1b3509d9a2ff5f16d147d1efd42c45e3e;hpb=d8fe8b1e8b008ee0b8d87fda7467b1d058a07e75;p=friendica.git diff --git a/src/Core/System.php b/src/Core/System.php index b2da78f1b3..e0c23e55b9 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -445,7 +445,7 @@ class System 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"'); } }