diff --git a/src/root/machine-status.tt b/src/root/machine-status.tt index 8a015e03..873944c1 100644 --- a/src/root/machine-status.tt +++ b/src/root/machine-status.tt @@ -3,28 +3,33 @@ [% FOREACH m IN machines %] + [% name = m.key ? m.key.match('@(.*)').0 : "localhost" %] [% idle = 1 %] [% FOREACH step IN steps %] - [% IF step.machine.match('@(.*)').0 == m.key %] + [% name2 = step.machine ? step.machine.match('@(.*)').0 : "localhost" %] + [% IF name == name2 %] [% idle = 0 %] - + [% END %] [% END %] @@ -32,13 +37,11 @@ [% IF m.value.idle %] [% ELSE %] - + [% END %] [% END %] [% END %]
- [% IF m.value.maxJobs > 0 %] - Running + [% IF !m.key || m.value.maxJobs %] + Enabled: [% ELSE %] - Stopped - [% END %] [% m.key %] ([% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END; system; END %]) + Disabled: + [% END %] [% name %] + [% IF m.value.systemTypes %] + ([% comma=0; FOREACH system IN m.value.systemTypes %][% IF comma; %], [% ELSE; comma = 1; END %][% system %][% END %]) + [% 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 renderDuration duration = curTime - step.starttime %]
Idle since [% INCLUDE renderDuration duration = curTime - m.value.idle %]
Never built
Never used
- - [% END %] diff --git a/src/root/status.tt b/src/root/status.tt index fe5632bf..a41b4e7f 100644 --- a/src/root/status.tt +++ b/src/root/status.tt @@ -14,7 +14,7 @@ [% step.build.id %] [% step.stepnr %] [% step.drvpath.match('-(.*)').0 %] - [% INCLUDE renderDuration duration = curTime - step.starttime %] + [% INCLUDE renderDuration duration = curTime - step.starttime %] [% END %]