summaryrefslogtreecommitdiff
path: root/Userland/w.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-06 19:13:52 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-06 19:13:52 +0200
commit4e2ccde85abd7db7d2e8c19034f2528a82b217c3 (patch)
tree1df96a0abfbca94eef19f942b5a188c63436bac7 /Userland/w.cpp
parent6dc5cda50d8bc0d3179928780cbb2c62c396601a (diff)
downloadserenity-4e2ccde85abd7db7d2e8c19034f2528a82b217c3.zip
Userland: Shorten "w" idle time format
Let's just say "123s" for now (instead of "123 sec")
Diffstat (limited to 'Userland/w.cpp')
-rw-r--r--Userland/w.cpp2
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();
}
}