1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

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
parent 6dc5cda50d
commit 4e2ccde85a

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();
}
}