Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102653266
D41999.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D41999.diff
View Options
diff --git a/usr.sbin/gstat/gstat.c b/usr.sbin/gstat/gstat.c
--- a/usr.sbin/gstat/gstat.c
+++ b/usr.sbin/gstat/gstat.c
@@ -406,16 +406,20 @@
PRINTMSG(",%.0f", (double)ld[2] * 1024);
if (ld[3] > 1e3)
PRINTMSG(",%.0f", (double)ld[3]);
- else
+ else if (ld[3] > 1e0)
PRINTMSG(",%.1f", (double)ld[3]);
+ else
+ PRINTMSG(",%.3f", (double)ld[3]);
PRINTMSG(",%.0f", (double)ld[4]);
if (flag_s)
PRINTMSG(",%.0f", (double)ld[14]);
PRINTMSG(",%.0f", (double)ld[5] * 1024);
if (ld[6] > 1e3)
PRINTMSG(",%.0f", (double)ld[6]);
- else
+ else if (ld[6] > 1e0)
PRINTMSG(",%.1f", (double)ld[6]);
+ else
+ PRINTMSG(",%.3f", (double)ld[6]);
if (flag_d) {
PRINTMSG(",%.0f", (double)ld[8]);
@@ -426,9 +430,12 @@
if (ld[10] > 1e3)
PRINTMSG(",%.0f",
(double)ld[10]);
- else
+ else if (ld[10] > 1e0)
PRINTMSG(",%.1f",
(double)ld[10]);
+ else
+ PRINTMSG(",%.3f",
+ (double)ld[10]);
}
if (flag_o) {
@@ -436,8 +443,11 @@
if (ld[12] > 1e3)
PRINTMSG(",%.0f",
(double)ld[12]);
+ else if (ld[12] > 1e0)
+ PRINTMSG(",%.1f",
+ (double)ld[12]);
else
- PRINTMSG(",%.1f",
+ PRINTMSG(",%.3f",
(double)ld[12]);
}
PRINTMSG(",%.1lf", (double)ld[7]);
@@ -450,16 +460,20 @@
PRINTMSG(" %6.0f", (double)ld[2] * 1024);
if (ld[3] > 1e3)
PRINTMSG(" %6.0f", (double)ld[3]);
- else
+ else if (ld[3] > 1e0)
PRINTMSG(" %6.1f", (double)ld[3]);
+ else
+ PRINTMSG(" %6.3f", (double)ld[3]);
PRINTMSG(" %6.0f", (double)ld[4]);
if (flag_s)
PRINTMSG(" %6.0f", (double)ld[14]);
PRINTMSG(" %6.0f", (double)ld[5] * 1024);
if (ld[6] > 1e3)
PRINTMSG(" %6.0f", (double)ld[6]);
- else
+ else if (ld[6] > 1e0)
PRINTMSG(" %6.1f", (double)ld[6]);
+ else
+ PRINTMSG(" %6.3f", (double)ld[6]);
if (flag_d) {
PRINTMSG(" %6.0f", (double)ld[8]);
@@ -471,9 +485,12 @@
if (ld[10] > 1e3)
PRINTMSG(" %6.0f",
(double)ld[10]);
- else
+ else if (ld[10] > 1e0)
PRINTMSG(" %6.1f",
(double)ld[10]);
+ else
+ PRINTMSG(" %6.3f",
+ (double)ld[10]);
}
if (flag_o) {
@@ -481,8 +498,11 @@
if (ld[12] > 1e3)
PRINTMSG(" %6.0f",
(double)ld[12]);
+ else if (ld[12] > 1e0)
+ PRINTMSG(" %6.1f",
+ (double)ld[12]);
else
- PRINTMSG(" %6.1f",
+ PRINTMSG(" %6.3f",
(double)ld[12]);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 9:34 AM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14656618
Default Alt Text
D41999.diff (2 KB)
Attached To
Mode
D41999: usr.sbin/gstat: add microsecond precision for disk latency
Attached
Detach File
Event Timeline
Log In to Comment