Fix -iostat feature by properly calculating the divisor in stat1().
authorYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Thu, 13 Jan 2005 12:45:39 +0000 (12:45 +0000)
committerYONETANI Tomokazu <y0netan1@dragonflybsd.org>
Thu, 13 Jan 2005 12:45:39 +0000 (12:45 +0000)
commit84d7598816737764a547a4a1b05b9828649215f5
treebe811618e4020358cf06702b56e28254e68be965
parentc42bc8321bf7e04c3b75d55bc77775a21528f4d5
Fix -iostat feature by properly calculating the divisor in stat1().
Also add a safeguard in histogram() in case a negative value is given
as the first argument(probably very rare now that our cp_time[] are
64-bit values).
usr.bin/systat/iostat.c