From dfa3eca14cf2bbf873ef5943967976e272671523 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 14 Feb 2012 14:10:32 +0000 Subject: [PATCH] Always send 1 for "-total" item in wfIncrStats() when destination is UDP; it should not depend on the $count parameter --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1