tidy-up: move literal to the right side of comparisons

Closes #17876
This commit is contained in:
Viktor Szakats 2025-07-08 14:10:35 +02:00
parent 08f97cbf5c
commit b2bccdc257
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
49 changed files with 113 additions and 113 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 */