mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
Bump maximum average to 15 minutes
This commit is contained in:
parent
1e51a0e354
commit
2a378d67ad
@ -189,7 +189,7 @@ foreach my $answer (@valid_answers) {
|
||||
$qdata->{last_correct_time} = gettimeofday;
|
||||
$qdata->{last_correct_nick} = $nick;
|
||||
|
||||
if (gettimeofday - $qdata->{last_asked} < 60 * 10) {
|
||||
if (gettimeofday - $qdata->{last_asked} < 60 * 15) {
|
||||
$qdata->{average_answer_time} *= $qdata->{correct} - 1;
|
||||
$qdata->{average_answer_time} += $elapsed;
|
||||
$qdata->{average_answer_time} /= $qdata->{correct};
|
||||
|
Loading…
Reference in New Issue
Block a user