Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/iostat/iostat.c
Show First 20 Lines • Show All 923 Lines • ▼ Show 20 Lines | if (xflag > 0) { | ||||
printf("%4.0Lf%5.0Lf", | printf("%4.0Lf%5.0Lf", | ||||
cur.tk_nin / etime, | cur.tk_nin / etime, | ||||
cur.tk_nout / etime); | cur.tk_nout / etime); | ||||
} | } | ||||
printf("\n"); | printf("\n"); | ||||
} | } | ||||
free(devicename); | free(devicename); | ||||
} else if (oflag > 0) { | } else if (oflag > 0) { | ||||
int msdig = (ms_per_transaction < 100.0) ? 1 : 0; | int msdig = (ms_per_transaction < 99.94) ? 1 : 0; | ||||
if (Iflag == 0) | if (Iflag == 0) | ||||
printf("%4.0Lf%4.0Lf%5.*Lf ", | printf("%4.0Lf%4.0Lf%5.*Lf ", | ||||
blocks_per_second, | blocks_per_second, | ||||
transfers_per_second, | transfers_per_second, | ||||
msdig, | msdig, | ||||
ms_per_transaction); | ms_per_transaction); | ||||
else | else | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |