]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
systat: Display seconds in vmstat mode
authorPeter Jeremy <peterj@FreeBSD.org>
Sat, 29 Jan 2022 09:41:19 +0000 (20:41 +1100)
committerPeter Jeremy <peterj@FreeBSD.org>
Sat, 5 Mar 2022 02:53:34 +0000 (13:53 +1100)
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)

usr.bin/systat/vmstat.c

index d269addf145ecbaa9fa7aadab318ea6e747d8738..cfc88f83a5bdd4e513a682b4c139556da209b4d8 100644 (file)
@@ -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);
 }