From 4dc6495cd974e13c9f6c3bc96c80d539e87fdd16 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Mon, 27 Jan 2014 18:43:06 +0200 Subject: [PATCH] Regenerate standings and log after job --- lib/Gruntmaster/Daemon.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 78b39e4..ed8e405 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -8,7 +8,7 @@ our $VERSION = '0.001'; use Gruntmaster::Daemon::Constants qw/ERR/; use Gruntmaster::Daemon::Format qw/mkrun/; -use Gruntmaster::Data qw/job_inmeta job_problem problem_meta set_job_daemon set_job_result set_job_result_text set_job_results SUBSCRIBE WAIT_FOR_MESSAGES/; +use Gruntmaster::Data; use Gruntmaster::Page::Log; use File::Basename qw/fileparse/; @@ -133,8 +133,11 @@ sub process{ PUBLISH gensrc => $job; PUBLISH genpage => "$log/job/$job.html"; PUBLISH genpage => "$log/index.html"; + PUBLISH genpage => "$log/st.html"; my $page = ($job + Gruntmaster::Page::Log::PAGE_SIZE - 1) / Gruntmaster::Page::Log::PAGE_SIZE; - PUBLISH genpage => "$log/$page.html" + PUBLISH genpage => "$log/@{[$page - 1]}.html"; + PUBLISH genpage => "$log/$page.html"; + PUBLISH genpage => "$log/@{[$page + 1]}.html"; } sub got_job{ -- 2.39.2