X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon%2FJudge%2FPoints.pm;h=26c19f9ab42ba2aee551b535f60d8264290285b6;hp=6decaad3b2c3391e369020ce34e5c677f50ff508;hb=3e7fd9031ca5f299f08ee12718ea8938dbb4277a;hpb=8aec2ffe6e3b488974f2ca97f7d63324e47742ab diff --git a/lib/Gruntmaster/Daemon/Judge/Points.pm b/lib/Gruntmaster/Daemon/Judge/Points.pm index 6decaad..26c19f9 100644 --- a/lib/Gruntmaster/Daemon/Judge/Points.pm +++ b/lib/Gruntmaster/Daemon/Judge/Points.pm @@ -8,15 +8,15 @@ use Gruntmaster::Daemon::Constants qw/AC REJ/; use List::Util qw/sum/; use Log::Log4perl qw/get_logger/; -our $VERSION = '5999.000_001'; +our $VERSION = '5999.000_004'; ################################################## sub judge{ - no warnings qw/numeric/; - get_logger->trace("Judging results: @_"); - my $points = sum 0, grep { !ref } @_; - $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points) + no warnings qw/numeric/; + get_logger->trace("Judging results: @_"); + my $points = sum 0, grep { !ref } @_; + $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points) } 1; @@ -31,7 +31,7 @@ Gruntmaster::Daemon::Judge::Points - 0 to 100 points IOI-style judge =head1 SYNOPSIS use Gruntmaster::Daemon::Judge::Points; - Gruntmaster::Daemon::Judge::Points->judge($result1, $result2, $result3, ...); + Gruntmaster::Daemon::Judge::Points::judge($result1, $result2, $result3, ...); =head1 DESCRIPTION