Always show the build duration (using the cached build if necessary)

This commit is contained in:
Eelco Dolstra 2013-02-20 17:07:20 +01:00
parent aebefda6ab
commit 11c09e4c5c

View file

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