Lines Matching refs:bar
54 struct ProgressData *bar = (struct ProgressData *)clientp; in tool_progress_cb() local
59 total = dltotal + ultotal + bar->initial_size; in tool_progress_cb()
62 point = dlnow + ulnow + bar->initial_size; in tool_progress_cb()
64 if(bar->calls && (tvdiff(now, bar->prevtime) < 100L) && point < total) in tool_progress_cb()
74 bar->calls++; in tool_progress_cb()
77 curl_off_t prevblock = bar->prev / 1024; in tool_progress_cb()
80 fprintf(bar->out, "#"); in tool_progress_cb()
84 else if(point != bar->prev) { in tool_progress_cb()
87 barwidth = bar->width - 7; in tool_progress_cb()
94 fprintf(bar->out, format, line, percent); in tool_progress_cb()
96 fflush(bar->out); in tool_progress_cb()
97 bar->prev = point; in tool_progress_cb()
98 bar->prevtime = now; in tool_progress_cb()
103 void progressbarinit(struct ProgressData *bar, in progressbarinit() argument
112 memset(bar, 0, sizeof(struct ProgressData)); in progressbarinit()
118 bar->initial_size = config->resume_from; in progressbarinit()
131 bar->width = (int)num; in progressbarinit()
133 bar->width = 79; in progressbarinit()
137 bar->width = 79; in progressbarinit()
146 bar->width = scr_size[0] - 1; in progressbarinit()
149 bar->out = config->global->errors; in progressbarinit()