curl-users
[PATCHv2 2/2] progress bar: increase update frequency to 10Hz
From: Tobias Markus <tobias_at_markus-regensburg.de>
Date: Mon, 06 Jan 2014 20:33:00 +0100
Date: Mon, 06 Jan 2014 20:33:00 +0100
Increasing the update frequency of the progress bar to 10Hz greatly
improves the visual appearance of the progress bar (at least in my
impression).
Signed-off-by: Tobias Markus <tobias_at_markus-regensburg.de>
--- src/tool_cb_prg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c index 3c97614..a9d7357 100644 --- a/src/tool_cb_prg.c +++ b/src/tool_cb_prg.c @@ -61,9 +61,9 @@ int tool_progress_cb(void *clientp, /* we've come this far */ point = dlnow + ulnow + bar->initial_size; - if(bar->calls && (tvdiff(now, bar->prevtime) < 200L) && point < total) - /* after first call, limit progress-bar updating to 5 Hz */ - /* update when we're at 100% even if last update is less than 200ms ago */ + if(bar->calls && (tvdiff(now, bar->prevtime) < 100L) && point < total) + /* after first call, limit progress-bar updating to 10 Hz */ + /* update when we're at 100% even if last update is less than 100ms ago */ return 0; if(point > total) -- 1.8.5.2 ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2014-01-06