diff options
author | dartraiden <wowemuh@gmail.com> | 2023-12-10 18:22:53 +0300 |
---|---|---|
committer | dartraiden <wowemuh@gmail.com> | 2023-12-10 18:25:13 +0300 |
commit | 2ae0fc7299825cc561197d3f23c90e52ae8db58b (patch) | |
tree | 95fa8e7eb16cdff25b74d2d0ec033e667d4fd2c5 /libs/libcurl/src/progress.c | |
parent | 76646f7a6d85fd5cdef2a610e0711bf4a9d8fdf3 (diff) |
libcurl: update to 8.5.0
Diffstat (limited to 'libs/libcurl/src/progress.c')
-rw-r--r-- | libs/libcurl/src/progress.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/libcurl/src/progress.c b/libs/libcurl/src/progress.c index 86d8a4dc6e..a151cd2889 100644 --- a/libs/libcurl/src/progress.c +++ b/libs/libcurl/src/progress.c @@ -304,7 +304,7 @@ timediff_t Curl_pgrsLimitWaitTime(curl_off_t cursize, * 'actual' is the time in milliseconds it took to actually download the
* last 'size' bytes.
*/
- actual = Curl_timediff(now, start);
+ actual = Curl_timediff_ceil(now, start);
if(actual < minimum) {
/* if it downloaded the data faster than the limit, make it wait the
difference */
@@ -319,12 +319,6 @@ timediff_t Curl_pgrsLimitWaitTime(curl_off_t cursize, */
CURLcode Curl_pgrsSetDownloadCounter(struct Curl_easy *data, curl_off_t size)
{
- if(data->set.max_filesize && (size > data->set.max_filesize)) {
- failf(data, "Exceeded the maximum allowed file size "
- "(%" CURL_FORMAT_CURL_OFF_T ")",
- data->set.max_filesize);
- return CURLE_FILESIZE_EXCEEDED;
- }
data->progress.downloaded = size;
return CURLE_OK;
}
|