Purge integer pages in Daemon.pm
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 9 Apr 2014 21:06:42 +0000 (00:06 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 9 Apr 2014 21:06:42 +0000 (00:06 +0300)
lib/Gruntmaster/Daemon.pm

index a8b7b20..7fef7f6 100644 (file)
@@ -139,7 +139,7 @@ sub process{
        });
 
        my $log = $jobr->contest ? 'ct/' . $jobr->contest->id . '/log' : 'log';
-       my $page = ($job + PAGE_SIZE - 1) / PAGE_SIZE;
+       my $page = int (($job + PAGE_SIZE - 1) / PAGE_SIZE);
 
        purge "/$log/$job";
        purge "/$log/";
This page took 0.02694 seconds and 4 git commands to generate.