On 02/27/2014 09:32 PM, Dimitry Sibiryakov wrote:
Hello, All.Am I alone who is getting division by zero from masterImplementation.cpp:curTime() during building from today's sources?
I have no problems, but after review that code seems to be dangerous from zerodivide POV. Please try this patch - if it helps please commit it, I have a lot of other changes in MasterImplementation.cpp in my copy of the tree.
Index: MasterImplementation.cpp =================================================================== --- MasterImplementation.cpp (revision 59204) +++ MasterImplementation.cpp (working copy) @@ -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)
------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel