mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
time_t fix: follow-up to de4de4e3c7
Blah, I accidentally wrote size_t instead of time_t for two variables. Reported-by: Dave Reisner
This commit is contained in:
parent
de4de4e3c7
commit
ebf985c159
@ -250,8 +250,8 @@ long Curl_pgrsLimitWaitTime(curl_off_t cursize,
|
|||||||
struct timeval now)
|
struct timeval now)
|
||||||
{
|
{
|
||||||
curl_off_t size = cursize - startsize;
|
curl_off_t size = cursize - startsize;
|
||||||
size_t minimum;
|
time_t minimum;
|
||||||
size_t actual;
|
time_t actual;
|
||||||
|
|
||||||
/* we don't have a starting point yet -- return 0 so it gets (re)set */
|
/* we don't have a starting point yet -- return 0 so it gets (re)set */
|
||||||
if(start.tv_sec == 0 && start.tv_usec == 0)
|
if(start.tv_sec == 0 && start.tv_usec == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user