X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmain.c;h=ecbd88083836ddec0639422850256f69c11d82cc;hp=9bf80465dc3b75274d16f296c5e9968e8f220cb6;hb=e289d2ecc402d2c904421f5951b3fb042a1d7fb3;hpb=276f66fc14a4599db7eb9ecce36c1a3ee176e8e7 diff --git a/src/main.c b/src/main.c index 9bf80465..ecbd8808 100644 --- a/src/main.c +++ b/src/main.c @@ -643,16 +643,8 @@ secs_to_human_time (double interval) sprintf (buf, "%dh %dm %ds", hours, mins, secs); else if (mins) sprintf (buf, "%dm %ds", mins, secs); - else if (interval >= 10) - sprintf (buf, "%ds", secs); else - /* For very quick downloads show more exact timing information. */ - sprintf (buf, "%.*fs", - interval < 0.001 ? 0 : /* 0s instead of 0.000s */ - interval < 0.01 ? 3 : /* 0.00x */ - interval < 0.1 ? 2 : /* 0.0x */ - 1, /* 0.x, 1.x, ..., 9.x */ - interval); + sprintf (buf, "%ss", print_decimal (interval)); return buf; }