Commit a4efbe0d authored by Eugene Grosbein's avatar Eugene Grosbein
Browse files

fetch(1): correct progress accounting after previous commit

MFC after:	1 month
parent e3bad5f7
......@@ -835,7 +835,7 @@ fetch(char *URL, const char *path)
if (us.size != -1 && count < us.size) {
warnx("%s appears to be truncated: %jd/%jd bytes",
path, (intmax_t)count, (intmax_t)us.size);
if(!o_stdout && a_flag && us.size > size_prev) {
if(!o_stdout && a_flag && count > size_prev) {
fclose(f);
if (w_secs)
sleep(w_secs);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment