← Commit list

faa9e94db

Denys Vlasenko
Denys Vlasenko
2014-03-27
SUCCESS Duration: 144s

Subject

wget: fix a case where progress bar isn't updated if writes are very slow

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+3 -2
@@ -640,7 +640,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp)
#if ENABLE_FEATURE_WGET_TIMEOUT
second_cnt = G.timeout_seconds;
#endif
- continue;
+ goto bump;
}
/* n <= 0.
@@ -673,11 +673,12 @@ static void NOINLINE retrieve_file_data(FILE *dfp)
* to try reading anyway.
*/
}
+#endif
+ bump:
/* Need to do it _every_ second for "stalled" indicator
* to be shown properly.
*/
progress_meter(PROGRESS_BUMP);
-#endif
} /* while (reading data) */
#if ENABLE_FEATURE_WGET_STATUSBAR || ENABLE_FEATURE_WGET_TIMEOUT