1
--- src/main.c.old Sun Mar 10 01:28:17 2002
2
+++ src/main.c Sun Mar 10 01:27:16 2002
3
@@ -1733,18 +1733,19 @@
15
FILE *out; /* where to write everything to */
18
int myprogress (void *clientp,
28
/* The original progress-bar source code was written for curl by Lars Aas,
29
and this new edition inherites some of his concepts. */
32
bar->point = dlnow + ulnow; /* we've come this far */
34
+ bar->calls++; /* simply count invokes */
37
int prevblock = bar->prev / 1024;
38
int thisblock = bar->point / 1024;
39
@@ -2403,6 +2406,13 @@
41
res = curl_easy_perform(curl);
43
+ if((config->progressmode == CURL_PROGRESS_BAR) &&
44
+ progressbar.calls) {
45
+ /* if the custom progress bar has been displayed, we output a
47
+ fputs("\n", progressbar.out);
50
if(config->writeout) {
51
ourWriteOut(curl, config->writeout);