Userland: Shorten "w" idle time format

Let's just say "123s" for now (instead of "123 sec")
This commit is contained in:
Andreas Kling 2020-09-06 19:13:52 +02:00
commit 4e2ccde85a
Notes: sideshowbarker 2024-07-19 02:52:36 +09:00

View file

@ -77,7 +77,7 @@ int main()
if (stat(tty.characters(), &st) == 0) {
auto idle_time = now - st.st_mtime;
if (idle_time >= 0) {
builder.appendf("%d sec", idle_time);
builder.appendf("%ds", idle_time);
idle_string = builder.to_string();
}
}