diff --git a/src/root/common.tt b/src/root/common.tt index fddeaecc..542a03c3 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -54,9 +54,9 @@ END; BLOCK renderDuration; - IF duration >= 24 * 60 * 60; duration div (24 * 60 * 60) %]d[% END; - IF duration >= 60 * 60; duration div (60 * 60) % 24 %]h[% END; - IF duration >= 60; duration div 60 % 60 %]m[% END; + IF duration >= 24 * 60 * 60; duration div (24 * 60 * 60) %]d [% END; + IF duration >= 60 * 60; duration div (60 * 60) % 24 %]h [% END; + IF duration >= 60; duration div 60 % 60 %]m [% END; duration % 60 %]s[% END; diff --git a/src/root/machine-status.tt b/src/root/machine-status.tt index 01aafc3d..d8db95fa 100644 --- a/src/root/machine-status.tt +++ b/src/root/machine-status.tt @@ -2,38 +2,37 @@ [% PROCESS common.tt %] -[% FOREACH m IN machines %] + [% FOREACH m IN machines %] - - - + + + - [% idle = 1 %] - [% FOREACH step IN steps %] + [% idle = 1 %] + [% FOREACH step IN steps %] [% IF step.machine.match('@(.*)').0 == m.hostname %] - [% idle = 0 %] - - - - - - - + [% idle = 0 %] + + + + + + + [% END %] - [% END %] - [% IF idle == 1 %] - - [% END %] + [% END %] + [% IF idle == 1 %] + + [% END %] -[% END %] + [% END %]
- [% IF m.enabled == 1 %] - Running - [% ELSE %] - Stopped - [% END %] - [% m.hostname %] [% FOREACH ms IN m.buildmachinesystemtypes %] [% ms.system %][% END %] -
+ [% IF m.enabled == 1 %] + Running + [% ELSE %] + Stopped + [% END %] [% m.hostname %] ([% comma=0; FOREACH ms IN m.buildmachinesystemtypes %][% IF comma; %], [% ELSE; comma = 1; END; ms.system; END %]) +
[% INCLUDE renderFullJobName project = step.build.project.name jobset = step.build.jobset.name job = step.build.job.name %][% step.system %][% step.build.id %][% step.drvpath.match('-(.*)').0 %][% INCLUDE renderDuration duration = curTime - step.starttime %]
[% INCLUDE renderFullJobName project = step.build.project.name jobset = step.build.jobset.name job = step.build.job.name %][% step.system %][% step.build.id %][% step.drvpath.match('-(.*)').0 %][% INCLUDE renderDuration duration = curTime - step.starttime %]
Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]
Idle since [% INCLUDE renderDuration duration = curTime - m.get_column('idle') %]