From 4e2ccde85abd7db7d2e8c19034f2528a82b217c3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 6 Sep 2020 19:13:52 +0200 Subject: [PATCH] Userland: Shorten "w" idle time format Let's just say "123s" for now (instead of "123 sec") --- Userland/w.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } }