[Pkg-telepathy-commits] [libnice] 102/265: pseudotcp: Switch to using monotonic time

Simon McVittie smcv at debian.org
Wed May 14 12:04:57 UTC 2014


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

smcv pushed a commit to branch debian
in repository libnice.

commit eb150a032edd38104abef425b4f58f4e371a7aa5
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Jan 23 23:47:14 2014 -0500

    pseudotcp: Switch to using monotonic time
---
 agent/pseudotcp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/agent/pseudotcp.c b/agent/pseudotcp.c
index b2cab28..8fc9947 100644
--- a/agent/pseudotcp.c
+++ b/agent/pseudotcp.c
@@ -203,9 +203,7 @@ bound(guint32 lower, guint32 middle, guint32 upper)
 static guint32
 get_current_time(void)
 {
-  GTimeVal tv;
-  g_get_current_time (&tv);
-  return tv.tv_sec * 1000 + tv.tv_usec / 1000;
+  return g_get_monotonic_time () / 1000;
 }
 
 static gboolean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list