From 97dd3ea56e14426f236348a4a7957c44b7d07a65 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Fri, 3 Jan 2020 21:26:49 -0800 Subject: [PATCH] LagChecker: convert lag_threshold to milliseconds --- PBot/LagChecker.pm | 6 +++--- data/registry | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PBot/LagChecker.pm b/PBot/LagChecker.pm index 2e09088d..bdce8185 100644 --- a/PBot/LagChecker.pm +++ b/PBot/LagChecker.pm @@ -40,9 +40,9 @@ sub initialize { $self->{ping_send_time} = undef; # when last ping was sent # maximum number of lag history entries to retain - $self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_history_max', $conf{lag_history_max} // 3); - # lagging is true if lag_average reaches or exceeds this threshold, in seconds - $self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_threshold', $conf{lag_threadhold} // 2); + $self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_history_max', $conf{lag_history_max} // 3); + # lagging is true if lag_average reaches or exceeds this threshold, in milliseconds + $self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_threshold', $conf{lag_threshhold} // 2000); # how often to send PING, in seconds $self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_history_interval', $conf{lag_history_interval} // 10); diff --git a/data/registry b/data/registry index 03570297..695e4b22 100644 --- a/data/registry +++ b/data/registry @@ -321,7 +321,7 @@ }, "lag_threshold" : { "type" : "text", - "value" : "2" + "value" : "2000" } }, "messagehistory" : {