mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 04:22:35 +01:00
LagChecker: convert lag_threshold to milliseconds
This commit is contained in:
parent
ea016dc406
commit
97dd3ea56e
@ -41,8 +41,8 @@ sub initialize {
|
|||||||
|
|
||||||
# maximum number of lag history entries to retain
|
# maximum number of lag history entries to retain
|
||||||
$self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_history_max', $conf{lag_history_max} // 3);
|
$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
|
# lagging is true if lag_average reaches or exceeds this threshold, in milliseconds
|
||||||
$self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_threshold', $conf{lag_threadhold} // 2);
|
$self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_threshold', $conf{lag_threshhold} // 2000);
|
||||||
# how often to send PING, in seconds
|
# how often to send PING, in seconds
|
||||||
$self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_history_interval', $conf{lag_history_interval} // 10);
|
$self->{pbot}->{registry}->add_default('text', 'lagchecker', 'lag_history_interval', $conf{lag_history_interval} // 10);
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@
|
|||||||
},
|
},
|
||||||
"lag_threshold" : {
|
"lag_threshold" : {
|
||||||
"type" : "text",
|
"type" : "text",
|
||||||
"value" : "2"
|
"value" : "2000"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"messagehistory" : {
|
"messagehistory" : {
|
||||||
|
Loading…
Reference in New Issue
Block a user