LagChecker: convert lag_threshold to milliseconds

This commit is contained in:
Pragmatic Software 2020-01-03 21:26:49 -08:00
parent ea016dc406
commit 97dd3ea56e
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -321,7 +321,7 @@
},
"lag_threshold" : {
"type" : "text",
"value" : "2"
"value" : "2000"
}
},
"messagehistory" : {