Loading src/Makefile.inc +2 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,8 @@ CURLX_ONES = \ ../lib/strtoofft.c \ ../lib/strdup.c \ ../lib/rawstr.c \ ../lib/nonblock.c ../lib/nonblock.c \ ../lib/timeval.c CURL_CFILES = \ tool_binmode.c \ Loading src/tool_cb_prg.c +2 −2 Original line number Diff line number Diff line Loading @@ -49,12 +49,12 @@ int tool_progress_cb(void *clientp, double percent; int barwidth; int num; time_t now = time(NULL); struct timeval now = curlx_tvnow(); struct ProgressData *bar = (struct ProgressData *)clientp; curl_off_t total; curl_off_t point; if(bar->prevtime == now) /* wait with update */ if(curlx_tvdiff(now, bar->prevtime) < 200) /* allow 5 Hz */ return 0; /* expected transfer size */ Loading src/tool_cb_prg.h +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ struct ProgressData { int calls; curl_off_t prev; time_t prevtime; struct timeval prevtime; int width; FILE *out; /* where to write everything to */ curl_off_t initial_size; Loading Loading
src/Makefile.inc +2 −1 Original line number Diff line number Diff line Loading @@ -13,7 +13,8 @@ CURLX_ONES = \ ../lib/strtoofft.c \ ../lib/strdup.c \ ../lib/rawstr.c \ ../lib/nonblock.c ../lib/nonblock.c \ ../lib/timeval.c CURL_CFILES = \ tool_binmode.c \ Loading
src/tool_cb_prg.c +2 −2 Original line number Diff line number Diff line Loading @@ -49,12 +49,12 @@ int tool_progress_cb(void *clientp, double percent; int barwidth; int num; time_t now = time(NULL); struct timeval now = curlx_tvnow(); struct ProgressData *bar = (struct ProgressData *)clientp; curl_off_t total; curl_off_t point; if(bar->prevtime == now) /* wait with update */ if(curlx_tvdiff(now, bar->prevtime) < 200) /* allow 5 Hz */ return 0; /* expected transfer size */ Loading
src/tool_cb_prg.h +1 −1 Original line number Diff line number Diff line Loading @@ -29,7 +29,7 @@ struct ProgressData { int calls; curl_off_t prev; time_t prevtime; struct timeval prevtime; int width; FILE *out; /* where to write everything to */ curl_off_t initial_size; Loading