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
This commit is contained in:
Peter Jeremy 2022-01-29 20:41:19 +11:00
parent 9146546eae
commit c9d1fa7003
No known key found for this signature in database
GPG Key ID: 16A597A0E4A20B34

View File

@ -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);
}