From: Marius Gavrilescu Date: Mon, 16 Mar 2015 16:38:12 +0000 (+0200) Subject: Do not add time limit override unless actually overriding something X-Git-Tag: 5999.000_014~52 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=843c909586b022565c885b934f6df18b8d7c8948;p=gruntmaster-data.git Do not add time limit override unless actually overriding something --- diff --git a/gruntmaster-problem b/gruntmaster-problem index e74449b..0f45fe8 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -181,6 +181,7 @@ sub cmd_check { for (keys %pass) { my $time = $pass{$_}; $time = sprintf '%.1f', $time * 3/2 + 0.1; + next if $time eq $db->problem($id)->timeout; $db->limits->create({problem => $id, format => $_, timeout => $time}); say "Set time limit for $_ to $time"; }