mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 14:35:05 +00:00
feat: add uptime display to status header (#329)
Show system uptime in the header row with a concise format (e.g., "up 1d 5h"). Simplify title from "Mole Status" to "Status" for better fit.
This commit is contained in:
@@ -52,8 +52,8 @@ func TestFormatUptime(t *testing.T) {
|
||||
if got := formatUptime(3600 + 120); got != "1h 2m" {
|
||||
t.Fatalf("expected \"1h 2m\", got %s", got)
|
||||
}
|
||||
if got := formatUptime(86400*2 + 3600*3 + 60*5); got != "2d 3h 5m" {
|
||||
t.Fatalf("expected \"2d 3h 5m\", got %s", got)
|
||||
if got := formatUptime(86400*2 + 3600*3 + 60*5); got != "2d 3h" {
|
||||
t.Fatalf("expected \"2d 3h\", got %s", got)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user