summary refs log tree commit diff stats
path: root/src/common/util.c
diff options
context:
space:
mode:
authorTingPing <TingPing@users.noreply.github.com>2014-02-04 17:29:27 -0800
committerTingPing <TingPing@users.noreply.github.com>2014-02-04 17:29:27 -0800
commit29e01daeae94281d5c21aba01dae9123f6aa34d5 (patch)
tree9660121007954778aa804a78206c5b4b8445b33e /src/common/util.c
parent9f01950bcbc85f8b3960724b6df77c3e9c111601 (diff)
parent9969282c72f838004fe3d75f06db48072b0fbfeb (diff)
Merge pull request #890 from orium/lagmeter-fixes
Lagmeter fixes
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
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;
 }