From aad3a11eca54f553543fe8cc1f9904440dfa3023 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Oct 2014 18:12:00 +0200 Subject: [PATCH] Build page: Show output / closure sizes --- src/root/build.tt | 15 +++++++++++++++ src/root/common.tt | 3 +++ src/root/product-list.tt | 2 -- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 801fc960..742e5293 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -342,6 +342,21 @@ Output store paths: [% INCLUDE renderOutputs outputs=build.buildoutputs %] + [% chartsURL = c.uri_for('/job' build.project.name build.jobset.name build.job.name) _ "#tabs-charts" %] + [% IF build.finished && build.closuresize %] + + Closure size: + [% mibs(build.closuresize / (1024 * 1024)) %] MiB + (history) + + [% END %] + [% IF build.finished && build.closuresize %] + + Output size: + [% mibs(build.size / (1024 * 1024)) %] MiB + (history) + + [% END %] [% IF build.finished && build.buildproducts %] Availability: diff --git a/src/root/common.tt b/src/root/common.tt index ef15c786..52c84a0b 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -4,6 +4,9 @@ USE String; USE HTML; +USE mibs=format("%.2f"); + + BLOCK renderDateTime; date.format(timestamp, '%Y-%m-%d %H:%M:%S'); END; diff --git a/src/root/product-list.tt b/src/root/product-list.tt index 5557f3ae..7870834f 100644 --- a/src/root/product-list.tt +++ b/src/root/product-list.tt @@ -1,5 +1,3 @@ -[% USE mibs=format("%.2f") %] - [% BLOCK renderProductLinks %] URL: