summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/pstat/pstat.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 7edf8b7..d6ddc57 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -1132,9 +1132,13 @@ swapmode()
continue;
if (!totalflag)
- (void)printf("/dev/%-6s %*d ",
- devname(sw[i].sw_dev, S_IFBLK),
- hlen, sw[i].sw_nblks / div);
+ if (sw[i].sw_dev != NODEV)
+ (void)printf("/dev/%-6s %*d ",
+ devname(sw[i].sw_dev, S_IFBLK),
+ hlen, sw[i].sw_nblks / div);
+ else
+ (void)printf("[NFS swap] %*d ",
+ hlen, sw[i].sw_nblks / div);
/* The first dmmax is never allocated to avoid trashing of
* disklabels
OpenPOWER on IntegriCloud