Module: sems Branch: master Commit: ac5185104030fad4e53080867c12d1b44cde2ec0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=ac5185104030fad4e53080867c12d1b44cde2ec0
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Apr 3 11:44:41 2013 +0200 sip: properly init wheel timer unix clock --- core/sip/wheeltimer.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/core/sip/wheeltimer.cpp b/core/sip/wheeltimer.cpp index 707af65..95ad2f9 100644 --- a/core/sip/wheeltimer.cpp +++ b/core/sip/wheeltimer.cpp @@ -45,6 +45,9 @@ timer::~timer() _wheeltimer::_wheeltimer() : wall_clock(0) { + struct timeval now; + gettimeofday(&now,NULL); + unix_clock.set(now.tv_sec); } _wheeltimer::~_wheeltimer() _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
