3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 05:49:27 +01:00

Bump maximum average to 15 minutes

This commit is contained in:
Pragmatic Software 2015-05-25 11:25:55 -07:00
parent 1e51a0e354
commit 2a378d67ad

View File

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