From 46e7b592a783ed5671e23939bf24bf82ee73751e Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 13 Jul 2021 08:29:14 +0700 Subject: [PATCH] Update main.php --- src/status/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status/main.php b/src/status/main.php index 2eb52bd..b08a1cc 100644 --- a/src/status/main.php +++ b/src/status/main.php @@ -21,7 +21,7 @@ function stripFirstLine($text) } } # uptime -preg_match("/(.+?) up (.+), .+? user, load average: (.+)/", shell_exec("uptime"), $matches); +preg_match("/(\S+?) up (.+), .+? user, load average: (.+)/", shell_exec("uptime"), $matches); $uptime = [ 'time' => $matches[1] ?? '', 'up' => $matches[2] ?? '',