From: Alexandre Emsenhuber Date: Tue, 14 Feb 2012 14:10:32 +0000 (+0000) Subject: Always send 1 for "-total" item in wfIncrStats() when destination is UDP; it should... X-Git-Tag: 1.31.0-rc.0~24716 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22upgrade%22%2C%22reinstall=non%22%29%20.%20%22?a=commitdiff_plain;h=dfa3eca14cf2bbf873ef5943967976e272671523;p=lhc%2Fweb%2Fwiklou.git Always send 1 for "-total" item in wfIncrStats() when destination is UDP; it should not depend on the $count parameter --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4312096262..7bddf835fe 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -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,