kolstad@convex.UUCP (04/21/84)
#N:convex:33500005:000:462 convex!kolstad Apr 20 16:10:00 1984 If your machine accumulates several days of idle time, iostat can report a negative idle percentage. This is due to an integer overflow in the print statement which computes this percent. Find the printf call in stat1 and notice that the conversion to floating point is not done until the multiply by the (integer) 100. This causes the overflow sometimes. Here's a new line which fixes the bug: printf("%3.0f", 100.0*s.cp_time[o]/time); Cheers. Rob