NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/56014: systat vm reports "1 users" after ^Z, fg.
>Number: 56014
>Category: bin
>Synopsis: systat vm reports "1 users" after ^Z, fg.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Feb 23 14:55:00 +0000 2021
>Originator: Kouichi Hashikawa
>Release: NetBSD-9.99.80
>Organization:
>Environment:
NetBSD 9.99.80 (GENERIC64) #0: Sat Feb 20 22:18:32 UTC 2021
mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64
>Description:
systat vm reports "1 users" after ^Z, fg.
>How-To-Repeat:
>Fix:
--- src/usr.bin/systat/vmstat.c-dist 2020-03-02 18:50:12.000000000 +0900
+++ src/usr.bin/systat/vmstat.c 2021-02-23 14:03:50.087970983 +0900
@@ -725,19 +725,16 @@
static int
ucount(void)
{
- static int onusers = -1;
int nusers = 0;
struct utmpentry *ehead;
nusers = getutentries(NULL, &ehead);
- if (nusers != onusers) {
- if (nusers == 1)
- mvprintw(STATROW, STATCOL + 8, " ");
- else
- mvprintw(STATROW, STATCOL + 8, "s");
- }
- onusers = nusers;
+ if (nusers == 1)
+ mvprintw(STATROW, STATCOL + 8, " ");
+ else
+ mvprintw(STATROW, STATCOL + 8, "s");
+
return (nusers);
}
Home |
Main Index |
Thread Index |
Old Index