diff --git a/apps/fetch.c b/apps/fetch.c index f9c4e78b..7613cf00 100644 --- a/apps/fetch.c +++ b/apps/fetch.c @@ -101,12 +101,13 @@ void print_progress(int force) { fprintf(stderr," %.2f Kbps", s); } - if (fetch_options.content_length) { + if (!force && fetch_options.content_length) { if (rate > 0.0) { double remaining = (double)(fetch_options.content_length - fetch_options.size) / rate; - fprintf(stderr," (%.2f sec remaining)", remaining); } + } else { + fprintf(stderr," (%.2f sec elapsed)", timediff); } } fprintf(stderr,"\033[K\033[?25h");