From c9d1fa7003d5def224e9cfa5d38314f187487eb9 Mon Sep 17 00:00:00 2001 From: Peter Jeremy Date: Sat, 29 Jan 2022 20:41:19 +1100 Subject: [PATCH] systat: Display seconds in vmstat mode Providing a timestamp with seconds granularity helps make it obvious that the display is updating. Reviewed by: mckusick MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29181 --- usr.bin/systat/vmstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index a02674ce64a6..87e006838468 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -290,7 +290,7 @@ fetchkre(void) time(&now); tp = localtime(&now); (void) strftime(buf, sizeof(buf), - d_first ? "%e %b %R" : "%b %e %R", tp); + d_first ? "%e %b %T" : "%b %e %T", tp); getinfo(&s); }