diff options
| author | batsumaru <> | 2026-07-01 17:08:29 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-07-01 17:08:29 +0900 |
| commit | 45f7fb33d96350798bfcc16877be152e2fa308bf (patch) | |
| tree | 4fb32c83686fcdb7a4c20c3daa4fbd4c6fe3f657 /statuspage/checks/jail-cgit.sh | |
| parent | f0c6add973af795f3ed9b069bcdba16fb7f1f66b (diff) | |
Fix uptime to include hours/minutes, add a purple/gold theme
hw.sh's uptime was parsed from `uptime`'s text output, which cut off
at the first comma - dropping the H:MM part entirely. It also never
actually rolled over to months/years for long uptimes (FreeBSD's
uptime just keeps growing the day count). Replaced with a direct
`sysctl kern.boottime` computation for a fully deterministic "Nd Hh
Mm" format. Caught a real bug along the way: the first attempt at the
sed extraction grabbed `usec` instead of `sec`, since "usec" contains
"sec" as a substring and the pattern wasn't anchored tightly enough.
render.sh's palette now uses purple/lavender for headings and borders
and a gold accent (title underline, value-column text), taking cues
from reference character art. The green/yellow/red/gray status
squares are untouched - they carry semantic meaning the color scheme
shouldn't interfere with.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'statuspage/checks/jail-cgit.sh')
0 files changed, 0 insertions, 0 deletions
