From: Marius Gavrilescu Date: Mon, 27 Jan 2014 16:43:06 +0000 (+0200) Subject: Regenerate standings and log after job X-Git-Tag: 5999.000_001~30 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=4dc6495cd974e13c9f6c3bc96c80d539e87fdd16;p=gruntmaster-daemon.git Regenerate standings and log after job --- 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{