From f66420815793015db113315f28c4ef1931c304bb Mon Sep 17 00:00:00 2001 From: "Zane C. Bowers-Hadley" Date: Sat, 3 Dec 2022 04:24:49 -0600 Subject: [PATCH] get the load average in a portable manner --- src/Core/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/System.php b/src/Core/System.php index b2da78f1b3..dbf49b38db 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/.*e: //" | sed "s/,//"'); } }