diff --git a/src/root/build.tt b/src/root/build.tt index 79f620b8..4c8ceba5 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -111,12 +111,13 @@ Cached from: [% INCLUDE renderFullBuildLink build=cachedBuild %] - [% ELSE %] - - Duration: - [% INCLUDE renderDuration duration = build.stoptime - build.starttime %]; finished at [% INCLUDE renderDateTime timestamp = build.stoptime %] - [% END %] + + Duration: + [% actualBuild = build.iscachedbuild ? cachedBuild : build; + INCLUDE renderDuration duration = actualBuild.stoptime - actualBuild.starttime %]; finished at [% INCLUDE renderDateTime timestamp = actualBuild.stoptime + %] + [% IF log_exists(build.drvpath) %] Logfile: