From: Peter Jeremy Date: Sat, 29 Jan 2022 09:41:19 +0000 (+1100) Subject: systat: Display seconds in vmstat mode X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=34f1d516aa90e5f89f89bb52b01e8983e6363a4e;p=people%2Froyger%2Ffreebsd.git systat: Display seconds in vmstat mode Providing a timestamp with seconds granularity helps make it obvious that the display is updating. Reviewed by: mckusick Differential Revision: https://reviews.freebsd.org/D29181 (cherry picked from commit c9d1fa7003d5def224e9cfa5d38314f187487eb9) --- diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index d269addf145e..cfc88f83a5bd 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -291,7 +291,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); }