Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2022 02:53:55 GMT
From:      Peter Jeremy <peterj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 34f1d516aa90 - stable/13 - systat: Display seconds in vmstat mode
Message-ID:  <202203050253.2252rtL9046291@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by peterj:

URL: https://cgit.FreeBSD.org/src/commit/?id=34f1d516aa90e5f89f89bb52b01e8983e6363a4e

commit 34f1d516aa90e5f89f89bb52b01e8983e6363a4e
Author:     Peter Jeremy <peterj@FreeBSD.org>
AuthorDate: 2022-01-29 09:41:19 +0000
Commit:     Peter Jeremy <peterj@FreeBSD.org>
CommitDate: 2022-03-05 02:53:34 +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
    Differential Revision:  https://reviews.freebsd.org/D29181
    
    (cherry picked from commit c9d1fa7003d5def224e9cfa5d38314f187487eb9)
---
 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 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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203050253.2252rtL9046291>