From dfed815d7191294f6fdf8f7687676c52cbd26409 Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Sun, 29 Nov 2015 00:48:38 +0400 Subject: Actually increment pongcount every call --- lib/ASM/Event.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ASM') diff --git a/lib/ASM/Event.pm b/lib/ASM/Event.pm index c85313c..905ada8 100644 --- a/lib/ASM/Event.pm +++ b/lib/ASM/Event.pm @@ -156,7 +156,7 @@ sub on_pong if ($lag > 1) { ASM::Util->dprint("Latency: $lag", 'latency'); } - if (($pongcount % 3) == 0) { #easiest way to do something roughly every 90 seconds + if (($pongcount++ % 3) == 0) { #easiest way to do something roughly every 90 seconds $conn->sl('STATS p'); } if ( @::syncqueue || $::netsplit_ignore_lag ) { -- cgit v1.2.3