From d46f0621b9358b30093c90d884730156bc312ab7 Mon Sep 17 00:00:00 2001 From: hniksic Date: Thu, 11 Aug 2005 14:20:37 -0700 Subject: [PATCH] [svn] Switch to days when printing more than 48h rather than 100h. --- src/ChangeLog | 6 ++++++ src/progress.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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); -- 2.39.2