mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:37:16 +03:00
reverted the pselect patch => http://curl.haxx.se/mail/lib-2007-03/0100.html
This commit is contained in:
parent
40e9e40cb4
commit
c8cd13337e
8 changed files with 49 additions and 253 deletions
|
|
@ -280,6 +280,9 @@ int Curl_pgrsUpdate(struct connectdata *conn)
|
|||
((double)data->progress.uploaded/
|
||||
(data->progress.timespent>0?data->progress.timespent:1));
|
||||
|
||||
if(data->progress.lastshow == Curl_tvlong(now))
|
||||
return 0; /* never update this more than once a second if the end isn't
|
||||
reached */
|
||||
data->progress.lastshow = now.tv_sec;
|
||||
|
||||
/* Let's do the "current speed" thing, which should use the fastest
|
||||
|
|
@ -356,10 +359,6 @@ int Curl_pgrsUpdate(struct connectdata *conn)
|
|||
return result;
|
||||
}
|
||||
|
||||
if(data->progress.lastshow == Curl_tvlong(now))
|
||||
return 0; /* never update this more than once a second if the end isn't
|
||||
reached */
|
||||
|
||||
/* Figure out the estimated time of arrival for the upload */
|
||||
if((data->progress.flags & PGRS_UL_SIZE_KNOWN) &&
|
||||
(data->progress.ulspeed>0) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue