Don't show duration of unfinished builds

This commit is contained in:
Eelco Dolstra 2013-02-26 16:01:00 +01:00
parent 2a3e832fc4
commit 5462be23d5

View file

@ -122,12 +122,14 @@
<td>[% INCLUDE renderFullBuildLink build=cachedBuild %]</td> <td>[% INCLUDE renderFullBuildLink build=cachedBuild %]</td>
</tr> </tr>
[% END %] [% END %]
[% IF build.finished %]
<tr> <tr>
<th>Duration:</th> <th>Duration:</th>
<td>[% actualBuild = build.iscachedbuild ? cachedBuild : build; <td>[% actualBuild = build.iscachedbuild ? cachedBuild : build;
INCLUDE renderDuration duration = actualBuild.stoptime - actualBuild.starttime %]; finished at [% INCLUDE renderDateTime timestamp = actualBuild.stoptime INCLUDE renderDuration duration = actualBuild.stoptime - actualBuild.starttime %]; finished at [% INCLUDE renderDateTime timestamp = actualBuild.stoptime
%]</td> %]</td>
</tr> </tr>
[% END %]
[% IF log_exists(build.drvpath) %] [% IF log_exists(build.drvpath) %]
<tr> <tr>
<th>Logfile:</th> <th>Logfile:</th>