X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon.pm;h=ed8e405ae37f603a30f495701aa456426a056759;hp=78b39e4c3f3ee6ad29328b3303db1907c78f658d;hb=4dc6495cd974e13c9f6c3bc96c80d539e87fdd16;hpb=7ddb70a9176040416f7a4624c98d205cd224c5a8 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{