git: c9d1fa7003d5 - main - systat: Display seconds in vmstat mode
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 29 Jan 2022 09:50:27 UTC
The branch main has been updated by peterj: URL: https://cgit.FreeBSD.org/src/commit/?id=c9d1fa7003d5def224e9cfa5d38314f187487eb9 commit c9d1fa7003d5def224e9cfa5d38314f187487eb9 Author: Peter Jeremy <peterj@FreeBSD.org> AuthorDate: 2022-01-29 09:41:19 +0000 Commit: Peter Jeremy <peterj@FreeBSD.org> CommitDate: 2022-01-29 09:41:19 +0000 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); }