diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-11 06:30:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-11 06:30:32 +0000 |
commit | 990975725c496bd77f7abb8a7dc95047edda5c16 (patch) | |
tree | fa25eca2c739f27ee23fa23d0ffd5f08aae43e8b /usr.bin/systat | |
parent | 003fea718c0c4930ce16eb5e6ec12ae3f8a1f78a (diff) |
oops
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/vmstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 3ee13725395..2873370863d 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmstat.c,v 1.48 2004/06/11 05:55:43 deraadt Exp $ */ +/* $OpenBSD: vmstat.c,v 1.49 2004/06/11 06:30:31 deraadt Exp $ */ /* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif -static char rcsid[] = "$OpenBSD: vmstat.c,v 1.48 2004/06/11 05:55:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: vmstat.c,v 1.49 2004/06/11 06:30:31 deraadt Exp $"; #endif /* not lint */ /* @@ -189,10 +189,10 @@ initkre(void) if ((ret = kvm_nlist(kd, namelist)) == -1) errx(1, "%s", kvm_geterr(kd)); #if defined(__i386__) - else if (ret > 1 && namelist[X_APICINTRHAND].n_value == 0) + else if (ret == 1 && namelist[X_APICINTRHAND].n_value != 0) nlisterr(namelist); #endif - else if (ret) + else if (ret > 1) nlisterr(namelist); if (namelist[0].n_type == 0) { error("No namelist"); |