artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffce30c
)
don't print vnodes if we didn't read them
author
tedu
<tedu@openbsd.org>
Fri, 19 Dec 2014 14:12:00 +0000
(14:12 +0000)
committer
tedu
<tedu@openbsd.org>
Fri, 19 Dec 2014 14:12:00 +0000
(14:12 +0000)
usr.sbin/pstat/pstat.c
patch
|
blob
|
history
diff --git
a/usr.sbin/pstat/pstat.c
b/usr.sbin/pstat/pstat.c
index
5cdbb00
..
6aa3f56
100644
(file)
--- a/
usr.sbin/pstat/pstat.c
+++ b/
usr.sbin/pstat/pstat.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: pstat.c,v 1.9
5 2014/12/19 14:08:2
0 tedu Exp $ */
+/* $OpenBSD: pstat.c,v 1.9
6 2014/12/19 14:12:0
0 tedu Exp $ */
/* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */
/*-
@@
-341,6
+341,8
@@
vnodemode(void)
(void)printf("%7d vnodes\n", numvnodes);
return;
}
+ if (!e_vnodebase)
+ return;
endvnode = e_vnodebase + numvnodes;
(void)printf("%d active vnodes\n", numvnodes);