Subject: bin/3856: pstat -ks ignores the -k in current
To: None <gnats-bugs@gnats.netbsd.org>
From: Dan Winship <danw@mit.edu>
List: netbsd-bugs
Date: 07/12/1997 21:51:51
>Number: 3856
>Category: bin
>Synopsis: pstat -ks ignores the -k in current
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 12 19:05:00 1997
>Last-Modified:
>Originator: Dan Winship
>Organization:
>Release: current of 7/12/97
>Environment:
System: NetBSD zork.mit.edu 1.2G NetBSD 1.2G (COCONUT) #13: Sat Jul 12 14:26:07 EDT 1997 danw@zork.mit.edu:/usr/src/sys/arch/i386/compile/COCONUT i386
>Description:
pstat -ks in current answers in 512-blocks instead of 1k-blocks
danw@zork:~> pstat -ks
Device 512-blocks Used Avail Capacity Priority
/dev/sd0b 131560 64 131496 0% 0
>How-To-Repeat:
run pstat -ks
>Fix:
*** pstat.c.orig Fri Jun 13 07:31:27 1997
--- pstat.c Sat Jul 12 21:48:02 1997
***************
*** 219,225 ****
if (ttyflag)
ttymode();
if (swapflag || totalflag)
! list_swap(0, 0, kflag, totalflag, 1);
exit (0);
}
--- 219,225 ----
if (ttyflag)
ttymode();
if (swapflag || totalflag)
! list_swap(0, kflag, 0, totalflag, 1);
exit (0);
}
>Audit-Trail:
>Unformatted: