NetBSD Problem Report #940
From gnats Tue Apr 4 05:01:56 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id FAA07129 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Tue, 4 Apr 1995 05:01:55 -0700
Message-Id: <9504041202.AA16008@leidecker.gsfc.nasa.gov>
Date: Tue, 4 Apr 95 08:02:13 -0400
From: Kenneth Stailey <kstailey@leidecker.gsfc.nasa.gov>
To: gnats-bugs@NetBSD.ORG
Subject: systat's iostat screen does not correcly display idle time
X-Send-Pr-Version: 3.2
>Number: 940
>Category: bin
>Synopsis: systat's iostat screen does not correcly display idle time
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 04 05:05:03 +0000 1995
>Closed-Date: Sun Jan 14 03:41:00 +0000 1996
>Last-Modified: Sun Jan 14 03:41:15 +0000 1996
>Originator: Kenneth Stailey
>Release: NetBSD 1.0A supped April 1 1995
>Organization:
self
>Environment:
System: NetBSD pluto 1.0A NetBSD 1.0A (PLUTO) #0: Sun Apr 2 12:21:12 EDT 1995 ken@pluto:/usr/src/sys/arch/i386/compile/PLUTO i386
>Description:
The cpu times are in this order: user, nice, system, interrupt, idle.
'Systat' is coded as if they where: user, nice, system, idle.
As a result the interrupt time comes out in the idle field, and
since no value is currenly computed for interrupt, the idle field
is always equal to zero.
>How-To-Repeat:
Run 'systat -i', observe that idle field never has a value > 0.
>Fix:
this goes in the /usr/src/usr.bin/systat directory.
--- iostat.c.DIST Fri Jan 20 03:51:57 1995
+++ iostat.c Wed Mar 15 13:26:53 1995
@@ -174,6 +174,7 @@
mvwaddstr(wnd, row++, 0, "cpu user|");
mvwaddstr(wnd, row++, 0, " nice|");
mvwaddstr(wnd, row++, 0, " system|");
+ mvwaddstr(wnd, row++, 0, "interrupt|");
mvwaddstr(wnd, row++, 0, " idle|");
if (numbers)
row = numlabels(row + 1);
@@ -265,9 +266,9 @@
row = 1;
/*
- * Last CPU state not calculated yet.
+ * Interrupt CPU state not calculated yet.
*/
- for (i = 0; i < CPUSTATES - 1; i++)
+ for (i = 0; i < CPUSTATES; i++)
stat1(row++, i);
if (!numbers) {
row += 2;
--HAA00323.796996251/pluto.spacenet.com--
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: thorpej
State-Changed-When: Sat Jan 13 19:41:00 PST 1996
State-Changed-Why:
This has been fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.