tidy-up: replace (0 == expressions

This commit is contained in:
Viktor Szakats 2025-07-09 19:58:33 +02:00
parent 2530adcf4d
commit bc72ca01e9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
17 changed files with 23 additions and 23 deletions

View file

@ -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 */