mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
When the ms/req fields exceed 1 second, drop the fractions to fit more digits.
This is unfortunately necessary with some flash based devices which can get hundreds of seconds behind with softupdates enabled.
This commit is contained in:
parent
ba7306546f
commit
0c5de885eb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=175118
@ -269,15 +269,24 @@ main(int argc, char **argv)
|
||||
printw(" %6.0f", (double)ld[0]);
|
||||
printw(" %6.0f", (double)ld[1]);
|
||||
printw(" %6.0f", (double)ld[2] * 1024);
|
||||
printw(" %6.1f", (double)ld[3]);
|
||||
if (ld[3] > 1e3)
|
||||
printw(" %6.0f", (double)ld[3]);
|
||||
else
|
||||
printw(" %6.1f", (double)ld[3]);
|
||||
printw(" %6.0f", (double)ld[4]);
|
||||
printw(" %6.0f", (double)ld[5] * 1024);
|
||||
printw(" %6.1f", (double)ld[6]);
|
||||
if (ld[6] > 1e3)
|
||||
printw(" %6.0f", (double)ld[6]);
|
||||
else
|
||||
printw(" %6.1f", (double)ld[6]);
|
||||
|
||||
if (flag_d) {
|
||||
printw(" %6.0f", (double)ld[8]);
|
||||
printw(" %6.0f", (double)ld[9] * 1024);
|
||||
printw(" %6.1f", (double)ld[10]);
|
||||
if (ld[10] > 1e3)
|
||||
printw(" %6.0f", (double)ld[10]);
|
||||
else
|
||||
printw(" %6.1f", (double)ld[10]);
|
||||
}
|
||||
|
||||
if (ld[7] > 80)
|
||||
|
Loading…
Reference in New Issue
Block a user