Always send 1 for "-total" item in wfIncrStats() when destination is UDP; it should not depend on the $count parameter

This commit is contained in:
Alexandre Emsenhuber 2012-02-14 14:10:32 +00:00
parent 51dacc9fbf
commit dfa3eca14c

View 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,