diff options
| author | Darkelarious <darkelarious@333networks.com> | 2017-09-25 22:41:59 +0200 |
|---|---|---|
| committer | Darkelarious <darkelarious@333networks.com> | 2017-09-25 22:41:59 +0200 |
| commit | 18fc4c931e75d8de804c601b46dc8c8b339db3d9 (patch) | |
| tree | 58a78c8c7841f649fa2e98ddd94456a55951dfa7 /lib/MasterServer/UDP/UDPTicker.pm | |
| parent | c06322da38b4cb76b2036af1a5448083adb8ff20 (diff) | |
| download | MasterServer-Perl-18fc4c931e75d8de804c601b46dc8c8b339db3d9.tar.gz MasterServer-Perl-18fc4c931e75d8de804c601b46dc8c8b339db3d9.zip | |
game statistics for all servers, numerous small fixes
Diffstat (limited to 'lib/MasterServer/UDP/UDPTicker.pm')
| -rwxr-xr-x | lib/MasterServer/UDP/UDPTicker.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MasterServer/UDP/UDPTicker.pm b/lib/MasterServer/UDP/UDPTicker.pm index 0566449..f5673a4 100755 --- a/lib/MasterServer/UDP/UDPTicker.pm +++ b/lib/MasterServer/UDP/UDPTicker.pm @@ -30,8 +30,9 @@ sub udp_ticker { # tick through pending list and server list my $server_info = AnyEvent->timer ( - after => 120, # grace time receiving beacons - interval => 0.2, # ~5 servers/s + after => 120, # grace time receiving beacons -- MUST be the last + # function to start as it controls the first_run parameter + interval => 0.2, # ~5 servers/second cb => sub { # reset counters if minimum time before reset passed + list processed if ($self->{firstrun}) { |
