projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7ddb70a
)
Regenerate standings and log after job
author
Marius Gavrilescu
<marius@ieval.ro>
Mon, 27 Jan 2014 16:43:06 +0000
(18:43 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Mon, 27 Jan 2014 16:43:06 +0000
(18:43 +0200)
lib/Gruntmaster/Daemon.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Daemon.pm
b/lib/Gruntmaster/Daemon.pm
index 78b39e4c3f3ee6ad29328b3303db1907c78f658d..ed8e405ae37f603a30f495701aa456426a056759 100644
(file)
--- 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::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/;
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 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;
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{
}
sub got_job{
This page took
0.011483 seconds
and
4
git commands to generate.