summaryrefslogtreecommitdiff
path: root/lib/progress.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/progress.c')
-rw-r--r--lib/progress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/progress.c b/lib/progress.c
index dce756b7b..457b4bd03 100644
--- a/lib/progress.c
+++ b/lib/progress.c
@@ -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)