gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 66/208: progress: progress.timespent needs to be us


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 66/208: progress: progress.timespent needs to be us
Date: Wed, 09 Aug 2017 17:34:23 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit cfe3c08f696ec2128df798882cea541b33b29632
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Jun 24 21:14:50 2017 +0200

    progress: progress.timespent needs to be us
    
    follow-up to 64ed44a815e4e to fix test 500 failures
---
 lib/progress.c | 4 ++--
 1 file 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)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]