Do not send data for 0 increment calls in wfIncrStats().

Change-Id: I5f1ca83ad56e129b42a96a5c73ec42cd2d978901
This commit is contained in:
Aaron Schulz 2013-01-18 10:26:54 -08:00
parent 258929f572
commit 3943a73e21

View file

@ -1235,11 +1235,15 @@ function wfLogProfilingData() {
*
* @param $key String
* @param $count Int
* @return void
*/
function wfIncrStats( $key, $count = 1 ) {
global $wgStatsMethod;
$count = intval( $count );
if ( $count == 0 ) {
return;
}
if( $wgStatsMethod == 'udp' ) {
global $wgUDPProfilerHost, $wgUDPProfilerPort, $wgAggregateStatsID;