]> iEval git - gruntmaster-daemon.git/commitdiff
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 a8b7b2097fb8ac9aa7946c3a32cfe3f19bd350dd..7fef7f68dd6334508d1fe09732aa61c4557b4a08 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.029402 seconds and 4 git commands to generate.