From 9969282c72f838004fe3d75f06db48072b0fbfeb Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Mon, 27 Jan 2014 20:24:56 +0000 Subject: Now make_ping_time() in common/util.c returns the time in milliseconds instead of microseconds. In fe_set_lag(serv, lag) the lag argument is now in milliseconds as well. Fixes #758. --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/util.c') diff --git a/src/common/util.c b/src/common/util.c index 6e912169..f999e61f 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1459,7 +1459,7 @@ make_ping_time (void) GTimeVal timev; g_get_current_time (&timev); #endif - return (timev.tv_sec - 50000) * 1000000 + timev.tv_usec; + return (timev.tv_sec - 50000) * 1000 + timev.tv_usec/1000; } -- cgit 1.4.1