Do not send data for 0 increment calls in wfIncrStats().
Change-Id: I5f1ca83ad56e129b42a96a5c73ec42cd2d978901
This commit is contained in:
parent
258929f572
commit
3943a73e21
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue