← Commit list

88ad9da65

Denys Vlasenko
Denys Vlasenko
2011-02-11
FAILED Duration: 231s

Subject

wget: display 100% at the _end_ of chunked download

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/wget.c+2 -2
@@ -556,9 +556,8 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd)
}
#if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT
clearerr(dfp);
- ndelay_off(polldata.fd);
+ ndelay_off(polldata.fd); /* else fgets can get very unhappy */
#endif
-
if (!G.chunked)
break;
@@ -572,6 +571,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd)
G.got_clen = 1;
}
+ G.chunked = 0; /* make progress meter show 100% even for chunked */
progress_meter(PROGRESS_END);
}