diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-04-18 21:18:46 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-04-18 21:18:46 +0000 |
commit | c2c8bf70ac6b684a53f9bcfc551919bffc3260a9 (patch) | |
tree | 99619bdb95705bfd15ce485bfb2b89af9a963936 /index.php | |
parent | c7bdc96d2a4a2b50deb97a82c2a88602828c8bf4 (diff) | |
download | pkgsubmit-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.php | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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>'; |