|
From: <ale...@us...> - 2014-03-03 11:18:34
|
Revision: 59220
http://sourceforge.net/p/firebird/code/59220
Author: alexpeshkoff
Date: 2014-03-03 11:18:31 +0000 (Mon, 03 Mar 2014)
Log Message:
-----------
Avoid zerodivide error, reported by Dmitry Sibiryakov
Modified Paths:
--------------
firebird/trunk/src/yvalve/MasterImplementation.cpp
Modified: firebird/trunk/src/yvalve/MasterImplementation.cpp
===================================================================
--- firebird/trunk/src/yvalve/MasterImplementation.cpp 2014-03-03 09:24:44 UTC (rev 59219)
+++ firebird/trunk/src/yvalve/MasterImplementation.cpp 2014-03-03 11:18:31 UTC (rev 59220)
@@ -527,7 +527,7 @@
TimerDelay curTime()
{
- return fb_utils::query_performance_counter() / (fb_utils::query_performance_frequency() / 1000000);
+ return 1000000 * fb_utils::query_performance_counter() / fb_utils::query_performance_frequency();
}
TimerEntry* getTimer(ITimer* timer)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|