diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-06 19:13:52 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-06 19:13:52 +0200 |
commit | 4e2ccde85abd7db7d2e8c19034f2528a82b217c3 (patch) | |
tree | 1df96a0abfbca94eef19f942b5a188c63436bac7 | |
parent | 6dc5cda50d8bc0d3179928780cbb2c62c396601a (diff) | |
download | serenity-4e2ccde85abd7db7d2e8c19034f2528a82b217c3.zip |
Userland: Shorten "w" idle time format
Let's just say "123s" for now (instead of "123 sec")
-rw-r--r-- | Userland/w.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/w.cpp b/Userland/w.cpp index d4059f7326..96470ff59b 100644 --- a/Userland/w.cpp +++ b/Userland/w.cpp @@ -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(); } } |