From: Marius Gavrilescu Date: Wed, 9 Apr 2014 21:06:42 +0000 (+0300) Subject: Purge integer pages in Daemon.pm X-Git-Tag: 5999.000_003~14 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=c9cdf09e0f7707805c8deb3bbc7ab3460eab1496;p=gruntmaster-daemon.git Purge integer pages in Daemon.pm --- diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index a8b7b20..7fef7f6 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -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/";