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" : {