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] ?? '',