Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site verdix.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!zehntel!hplabs!tektronix!ogcvax!verdix!rascal From: rascal@verdix.UUCP (Stephen Scalpone) Newsgroups: net.bugs.4bsd Subject: trivial iostat bug Message-ID: <193@verdix.UUCP> Date: Wed, 27-Jun-84 02:14:48 EDT Article-I.D.: verdix.193 Posted: Wed Jun 27 02:14:48 1984 Date-Received: Sun, 1-Jul-84 05:21:21 EDT Organization: Verdix Lines: 31 Our version of "iostat" printed a funny number for idle time, so I changed a line and recompiled. Our C compiler's floating-point arithmetic bugs have *not* been fixed. Diffs follow. Sorry so boring. Steve Scalpone verdix!rascal ---------------------- *** iostat.c Wed Jun 20 23:00:15 1984 --- /usr/src/usr.bin/iostat.c Sun Sep 25 18:06:18 1983 *************** *** 207,213 time += s.cp_time[i]; if (time == 0.0) time = 1.0; ! printf("%3.0f", 100.0*s.cp_time[o]/time); } #define steal(where, var) lseek(mf, where, 0); read(mf, &var, sizeof var); --- 207,213 ----- time += s.cp_time[i]; if (time == 0.0) time = 1.0; ! printf("%3.0f", 100*s.cp_time[o]/time); } #define steal(where, var) lseek(mf, where, 0); read(mf, &var, sizeof var);