summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-04-18 21:18:46 +0000
committerRomain d'Alverny <rda@mageia.org>2011-04-18 21:18:46 +0000
commitc2c8bf70ac6b684a53f9bcfc551919bffc3260a9 (patch)
tree99619bdb95705bfd15ce485bfb2b89af9a963936 /index.php
parentc7bdc96d2a4a2b50deb97a82c2a88602828c8bf4 (diff)
downloadpkgsubmit-c2c8bf70ac6b684a53f9bcfc551919bffc3260a9.tar
pkgsubmit-c2c8bf70ac6b684a53f9bcfc551919bffc3260a9.tar.gz
pkgsubmit-c2c8bf70ac6b684a53f9bcfc551919bffc3260a9.tar.bz2
pkgsubmit-c2c8bf70ac6b684a53f9bcfc551919bffc3260a9.tar.xz
pkgsubmit-c2c8bf70ac6b684a53f9bcfc551919bffc3260a9.zip
buildtime total+avg
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/index.php b/index.php
index 768cbc2..ba34e58 100644
--- a/index.php
+++ b/index.php
@@ -393,11 +393,13 @@ if ($total > 0) {
$buildtime_avg += $tmp[0] * $count;
$buildtime_cnt += $count;
}
- $buildtime_avg = round($buildtime_avg / $buildtime_cnt, 1);
- $s .= sprintf('<table style="width: 100%%;"><caption>Build time (average: %s)</caption>
- <tr><th title="Build time">Duration</th><th title="Packages number">Pack. nb.</th></tr>',
- $buildtime_avg);
+ $s .= '<table style="width: 100%;"><caption>Build time</caption>
+ <tr><th title="Build time">Duration</th><th title="Packages number">Pack. nb.</th></tr>';
+
+ $s .= sprintf('<tr><td>Total time</td><td>%s</td></tr><tr><td>Average</td><td>%s</td></tr>',
+ $buildtime_avg, round($buildtime_avg / $buildtime_cnt, 1));
+
$s .= $bts;
$s .= '</table>';