Revision: 34818
http://sourceforge.net/p/opalvoip/code/34818
Author: rjongbloed
Date: 2016-05-06 17:00:47 +0000 (Fri, 06 May 2016)
Log Message:
-----------
Restored value of a PTimer, which is time remaining when running, to be zero when not running. Actually previous implementation would have been a negative time, but zero is more intuitive.
Modified Paths:
--------------
ptlib/trunk/src/ptlib/common/osutils.cxx
Modified: ptlib/trunk/src/ptlib/common/osutils.cxx
===================================================================
--- ptlib/trunk/src/ptlib/common/osutils.cxx 2016-05-05 14:32:19 UTC (rev 34817)
+++ ptlib/trunk/src/ptlib/common/osutils.cxx 2016-05-06 17:00:47 UTC (rev 34818)
@@ -1188,7 +1188,7 @@
int64_t PTimer::InternalGet() const
{
if (!m_running)
- return PTimeInterval::InternalGet();
+ return 0;
PTimeInterval diff = m_absoluteTime - Tick();
if (diff < 0)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|