mirror of
https://github.com/curl/curl.git
synced 2026-06-07 20:54:27 +03:00
tidy-up: replace (0 == expressions
This commit is contained in:
parent
2530adcf4d
commit
bc72ca01e9
17 changed files with 23 additions and 23 deletions
|
|
@ -449,7 +449,7 @@ static bool progress_calc(struct Curl_easy *data, struct curltime now)
|
|||
|
||||
/* Figure out the exact time for the time span */
|
||||
span_ms = curlx_timediff(now, p->speeder_time[checkindex]);
|
||||
if(0 == span_ms)
|
||||
if(span_ms == 0)
|
||||
span_ms = 1; /* at least one millisecond MUST have passed */
|
||||
|
||||
/* Calculate the average speed the last 'span_ms' milliseconds */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue