diff options
author | Peter Jeremy <peterj@FreeBSD.org> | 2022-01-29 09:41:19 +0000 |
---|---|---|
committer | Peter Jeremy <peterj@FreeBSD.org> | 2022-01-29 09:41:19 +0000 |
commit | c9d1fa7003d5def224e9cfa5d38314f187487eb9 (patch) | |
tree | 757cc829cec0622857d08a8f71ccc76c1b2cd03f /usr.bin/systat | |
parent | 9146546eaee3e04e0d77f42b3a4fe4cd207021c6 (diff) | |
download | src-c9d1fa7003d5def224e9cfa5d38314f187487eb9.tar.gz src-c9d1fa7003d5def224e9cfa5d38314f187487eb9.zip |
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
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/vmstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |