Always send 1 for "-total" item in wfIncrStats() when destination is UDP; it should...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 14 Feb 2012 14:10:32 +0000 (14:10 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 14 Feb 2012 14:10:32 +0000 (14:10 +0000)
includes/GlobalFunctions.php

index 4312096..7bddf83 100644 (file)
@@ -2581,7 +2581,7 @@ function wfIncrStats( $key, $count = 1 ) {
 
                if ( !$socket ) {
                        $socket = socket_create( AF_INET, SOCK_DGRAM, SOL_UDP );
-                       $statline = "stats/{$id} - {$count} 1 1 1 1 -total\n";
+                       $statline = "stats/{$id} - 1 1 1 1 1 -total\n";
                        socket_sendto(
                                $socket,
                                $statline,