[svn] Switch to days when printing more than 48h rather than 100h.

This commit is contained in:
hniksic 2005-08-11 14:20:37 -07:00
parent f25d593c16
commit d46f0621b9
2 changed files with 7 additions and 1 deletions

View File

@ -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>
* cmpt.c (strtoll): Define it if missing on the system and if Wget

View File

@ -1051,7 +1051,7 @@ eta_to_human_short (int secs, bool condensed)
sprintf (buf, "%ds", secs);
else if (secs < 100 * 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);
else if (secs < 100 * 86400)
sprintf (buf, "%dd%s%dh", secs / 86400, space, (secs / 3600) % 60);