Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Update main.php
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Jul 13, 2021
1 parent 46e7b59 commit 971a9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function stripFirstLine($text)
}
}
# uptime
preg_match("/(\S+?) up (.+), .+? user, load average: (.+)/", shell_exec("uptime"), $matches);
preg_match("/(\S+?) up (.+), .+? users?, load average: (.+)/", shell_exec("uptime"), $matches);
$uptime = [
'time' => $matches[1] ?? '',
'up' => $matches[2] ?? '',
Expand Down

0 comments on commit 971a9eb

Please sign in to comment.