r111460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111459‎ | r111460 | r111461 >
Date:14:10, 14 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Always send 1 for "-total" item in wfIncrStats() when destination is UDP; it should not depend on the $count parameter
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -2581,7 +2581,7 @@
25822582
25832583 if ( !$socket ) {
25842584 $socket = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP );
2585 - $statline = "stats/{$id} - {$count} 1 1 1 1 -total\n";
 2585+ $statline = "stats/{$id} - 1 1 1 1 1 -total\n";
25862586 socket_sendto(
25872587 $socket,
25882588 $statline,

Status & tagging log