mirror of
https://github.com/mirror/wget.git
synced 2025-02-09 03:11:00 +08:00
[svn] Switch to days when printing more than 48h rather than 100h.
This commit is contained in:
parent
f25d593c16
commit
d46f0621b9
@ -1,3 +1,9 @@
|
|||||||
|
2005-08-11 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* progress.c (eta_to_human_short): Switch to days when printing
|
||||||
|
more than 48h rather than 100h. (It's not immediately apparent
|
||||||
|
how many days there are in 83h.)
|
||||||
|
|
||||||
2005-08-11 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-08-11 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* cmpt.c (strtoll): Define it if missing on the system and if Wget
|
* cmpt.c (strtoll): Define it if missing on the system and if Wget
|
||||||
|
@ -1051,7 +1051,7 @@ eta_to_human_short (int secs, bool condensed)
|
|||||||
sprintf (buf, "%ds", secs);
|
sprintf (buf, "%ds", secs);
|
||||||
else if (secs < 100 * 60)
|
else if (secs < 100 * 60)
|
||||||
sprintf (buf, "%dm%s%ds", secs / 60, space, secs % 60);
|
sprintf (buf, "%dm%s%ds", secs / 60, space, secs % 60);
|
||||||
else if (secs < 100 * 3600)
|
else if (secs < 48 * 3600)
|
||||||
sprintf (buf, "%dh%s%dm", secs / 3600, space, (secs / 60) % 60);
|
sprintf (buf, "%dh%s%dm", secs / 3600, space, (secs / 60) % 60);
|
||||||
else if (secs < 100 * 86400)
|
else if (secs < 100 * 86400)
|
||||||
sprintf (buf, "%dd%s%dh", secs / 86400, space, (secs / 3600) % 60);
|
sprintf (buf, "%dd%s%dh", secs / 86400, space, (secs / 3600) % 60);
|
||||||
|
Loading…
Reference in New Issue
Block a user