Make gruntmasterd use Redis
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Judge / Points.pm
index 6d13ad07f4c489dff820c0e2c10cfe48690405a6..e75aeb2536c3bb566b294c3eeea118f2726b966f 100644 (file)
@@ -14,7 +14,7 @@ our $VERSION = '0.001';
 sub judge{
   no warnings qw/numeric/;
   get_logger->trace("Judging results: @_");
-  my $points = sum 0, grep { $_+0 eq "$_" } @_;
+  my $points = sum 0, grep { !ref } @_;
   $points == 100 ? (result => AC, result_text => 'Accepted') : (result => REJ, result_text => "$points points", points => $points)
 }
 
This page took 0.011033 seconds and 4 git commands to generate.