From e09d1fd25e913b9019dc16da1c81a86df0c7941a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 2 Mar 2026 13:30:53 +0100 Subject: [PATCH] fixup comments --- lib/progress.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/progress.c b/lib/progress.c index f21f50eb3b..0fa5169936 100644 --- a/lib/progress.c +++ b/lib/progress.c @@ -340,8 +340,8 @@ void Curl_pgrsStartNow(struct Curl_easy *data) p->ul_size_known = FALSE; } -/* this counts how much data is delivered to the application, which - in compressed cases may differ from downloaded amount */ +/* check that the 'delta' amount of bytes are okay to deliver to the + application, or return error if not. */ CURLcode Curl_pgrs_deliver_check(struct Curl_easy *data, size_t delta) { if(data->set.max_filesize && @@ -350,7 +350,8 @@ CURLcode Curl_pgrs_deliver_check(struct Curl_easy *data, size_t delta) return CURLE_OK; } -/* the check is already done, this is okay */ +/* this counts how much data is delivered to the application, which + in compressed cases may differ from downloaded amount */ void Curl_pgrs_deliver_inc(struct Curl_easy *data, size_t delta) { data->progress.deliver += delta;