Subject: bin/18822: Formatting problem with "systat io/numbers"
To: None <gnats-bugs@gnats.netbsd.org>
From: Paul Shupak <paul@fsrv.plectere.com>
List: netbsd-bugs
Date: 10/26/2002 20:06:58
>Number:         18822
>Category:       bin
>Synopsis:       a single space is wasted causing constant textual misaligments
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 26 20:08:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Shupak
>Release:        NetBSD 1.6J - today
>Organization:
>Environment:
System: NetBSD fsrv 1.6J NetBSD 1.6J (FSRV) #264: Sat Oct 26 17:03:28 PDT 2002 root@fsrv:/usr/src/sys/arch/i386/compile/FSRV i386
Architecture: i386
Machine: i386
>Description:
	Use any disk/process combo over 1M/s and the "kBps" field overflows
its allowed three spaces.  NOTE: The other space for the higher order column
ALREADY exists and is just wasted now.
>How-To-Repeat:
	% systat io
	:number
>Fix:
iostat.c-diffs: Permission denied.
Index: iostat.c
===================================================================
RCS file: /cvsroot/basesrc/usr.bin/systat/iostat.c,v
retrieving revision 1.22
diff -c -r1.22 iostat.c
*** iostat.c	2002/09/25 13:50:39	1.22
--- iostat.c	2002/10/27 02:56:05
***************
*** 240,246 ****
  
  	words = cur.dk_bytes[dn] / 1024.0;	/* # of k transferred */
  	if (numbers) {
! 		mvwprintw(wnd, row, col, " %3.0f%4.0f%5.1f",
  		    words / etime, cur.dk_xfer[dn] / etime, atime / etime);
  		return (row);
  	}
--- 240,246 ----
  
  	words = cur.dk_bytes[dn] / 1024.0;	/* # of k transferred */
  	if (numbers) {
! 		mvwprintw(wnd, row, col, "%4.0f%4.0f%5.1f",
  		    words / etime, cur.dk_xfer[dn] / etime, atime / etime);
  		return (row);
  	}
>Release-Note:
>Audit-Trail:
>Unformatted: