From: hniksic Date: Thu, 11 Aug 2005 21:20:37 +0000 (-0700) Subject: [svn] Switch to days when printing more than 48h rather than 100h. X-Git-Tag: v1.13~735 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=d46f0621b9358b30093c90d884730156bc312ab7;hp=f25d593c16d10ae1ef6d519eb0268fead356b014 [svn] Switch to days when printing more than 48h rather than 100h. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7d782ced..48d12c3a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2005-08-11 Hrvoje Niksic + + * 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 * cmpt.c (strtoll): Define it if missing on the system and if Wget diff --git a/src/progress.c b/src/progress.c index f25ca6b6..05a6c26f 100644 --- a/src/progress.c +++ b/src/progress.c @@ -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);