diff options
| author | 2015-08-06 07:32:53 +0400 | |
|---|---|---|
| committer | 2015-08-06 07:32:53 +0400 | |
| commit | 138ea2798570a3ee9f3821f31de7e4acd2c42d03 (patch) | |
| tree | 4d256144dbc80c6d301ca94c49487a628fd5ed11 | |
| parent | 792c33c3fe0dcbca05f9101e5632c48058991ba1 (diff) | |
Redefined the meaning of lag
| -rw-r--r-- | modules/event.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/event.pl b/modules/event.pl index 873fb89..b1ab1be 100644 --- a/modules/event.pl +++ b/modules/event.pl @@ -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) < 60 ) { + if ((time - $::starttime) < 240 ) { return; #we don't worry about lag if we've just started up and are still syncing etc. } if (($lag > 2) && ($lag < 5)) { @@ -171,12 +171,12 @@ sub on_pong $conn->quit("Automatic restart triggered due to persistent lag. Freenode staff: If this is happening too frequently, please " . "set a nickserv freeze on my account, and once my connection is stable, unfreeze the account and /kill me to tri" . "gger a reconnect."); - } elsif ($lagcycles >=2) { + } else { $conn->privmsg( $::settings->{masterchan}, "Warning: I'm currently lagging by $lag seconds. This marks heavy lag cycle " . "$lagcycles - automatic restart will be triggered after 3 lag cycles." ); } } - if (($lag <= 2) && ($lagcycles > 0)) { + if (($lag <= 5) && ($lagcycles > 0)) { $lagcycles--; # $conn->privmsg( $::settings->{masterchan}, "Warning: Heavy lag cycle count has been reduced to $lagcycles" ); ASM::Util->dprint('$lag = ' . $lag . '; $lagcycles = ' . $lagcycles, 'latency'); |
