mirror of
https://github.com/curl/curl.git
synced 2026-05-14 11:36:21 +03:00
progress: progress.timespent needs to be us
follow-up to 64ed44a815 to fix test 500 failures
This commit is contained in:
parent
e5d6aa8d61
commit
cfe3c08f69
1 changed files with 2 additions and 2 deletions
|
|
@ -361,8 +361,8 @@ int Curl_pgrsUpdate(struct connectdata *conn)
|
|||
now = Curl_tvnow(); /* what time is it */
|
||||
|
||||
/* The time spent so far (from the start) */
|
||||
data->progress.timespent = Curl_tvdiff(now, data->progress.start);
|
||||
timespent = (curl_off_t)data->progress.timespent/1000; /* integer seconds */
|
||||
data->progress.timespent = Curl_tvdiff_us(now, data->progress.start);
|
||||
timespent = (curl_off_t)data->progress.timespent/1000000; /* seconds */
|
||||
|
||||
/* The average download speed this far */
|
||||
data->progress.dlspeed = (curl_off_t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue