summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLibravatarDoug Freed <dwfreed@mtu.edu>2015-11-26 12:22:13 +0400
committerLibravatarDoug Freed <dwfreed@mtu.edu>2015-11-26 12:22:13 +0400
commit17498f84521b979d54a5aa72e64c7a65fa6ba5be (patch)
tree0026584b91f1fc1428c54d120db995675834a429 /lib
parentb42684900a0f2c00fdcf88d31a142ee5b5ddd361 (diff)
Ignore lag while syncing, no matter how long
Diffstat (limited to 'lib')
-rw-r--r--lib/ASM/Event.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm
index 6e5dc94..b1f9db6 100644
--- a/lib/ASM/Event.pm
+++ b/lib/ASM/Event.pm
@@ -159,7 +159,7 @@ sub on_pong
if (($pongcount % 3) == 0) { #easiest way to do something roughly every 90 seconds
$conn->sl('STATS p');
}
- if ((time - $::starttime) < 240 ) {
+ if ( @::syncqueue ) {
return; #we don't worry about lag if we've just started up and are still syncing etc.
}
if (($lag > 2) && ($lag < 5)) {