[OpenSIPS-Devel] [ opensips-Patches-3555236 ] Benchmark Module Global Average

SourceForge.net noreply at sourceforge.net
Thu Jan 17 19:42:29 CET 2013


Patches item #3555236, was opened at 2012-08-07 17:37
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3555236&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: David Sanders (dmsanders)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Benchmark Module Global Average

Initial Comment:
Currently the _bm_log_timer function in the benchmark module is not computing the global average correctly. It is dividing the timer sum by the last number of calls, rather than the global number of calls. This leads to an ever-increasing global average for call length.

Attached patch simply changes the timer sum to be divided by the global number of calls when calculating the global average.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-01-17 10:42

Message:
Hi David,

Thanks for the fix, patch uploaded on trunk, 1.8 and 1.7

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3555236&group_id=232389



More information about the Devel mailing list