mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
lib: rename curlx_timediff to curlx_timeleft_ms
Rename `Curl_timeleft()` to `Curl_timeleft_ms()` to make the units in the returned `timediff_t` clear. (We used to always have ms there, but with QUIC started to sometimes calc ns as well). Rename some assigned vars without `_ms` suffix for clarity as well. Closes #19486
This commit is contained in:
parent
ca27404d27
commit
78a610cb83
53 changed files with 187 additions and 188 deletions
|
|
@ -171,13 +171,13 @@ int tool_progress_cb(void *clientp,
|
|||
if(bar->prev == point)
|
||||
/* progress did not change since last invoke */
|
||||
return 0;
|
||||
else if((curlx_timediff(now, bar->prevtime) < 100L) && point < total)
|
||||
else if((curlx_timediff_ms(now, bar->prevtime) < 100L) && point < total)
|
||||
/* limit progress-bar updating to 10 Hz except when we are at 100% */
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
/* total is unknown */
|
||||
if(curlx_timediff(now, bar->prevtime) < 100L)
|
||||
if(curlx_timediff_ms(now, bar->prevtime) < 100L)
|
||||
/* limit progress-bar updating to 10 Hz */
|
||||
return 0;
|
||||
update_width(bar);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue