From c9cdf09e0f7707805c8deb3bbc7ab3460eab1496 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 10 Apr 2014 00:06:42 +0300 Subject: [PATCH] Purge integer pages in Daemon.pm --- lib/Gruntmaster/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/"; -- 2.39.2