Page MenuHomeFreeBSD

D41999.diff
No OneTemporary

D41999.diff

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

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)

Event Timeline