diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-06 06:51:19 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-06 06:51:19 +0000 |
commit | 4f1028f156087ee5898caaccae98e780d1b46533 (patch) | |
tree | 17e53ddfc465a11a8e84c2003e188c84e32c328d /test_index.php | |
parent | b6d042a0ccb3b3d8c7bd36a0b38483f15fe940c9 (diff) | |
download | pkgsubmit-4f1028f156087ee5898caaccae98e780d1b46533.tar pkgsubmit-4f1028f156087ee5898caaccae98e780d1b46533.tar.gz pkgsubmit-4f1028f156087ee5898caaccae98e780d1b46533.tar.bz2 pkgsubmit-4f1028f156087ee5898caaccae98e780d1b46533.tar.xz pkgsubmit-4f1028f156087ee5898caaccae98e780d1b46533.zip |
capacity build time stats
Diffstat (limited to 'test_index.php')
-rw-r--r-- | test_index.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test_index.php b/test_index.php index f96f3ed..e931ecb 100644 --- a/test_index.php +++ b/test_index.php @@ -268,13 +268,17 @@ if ($total > 0) { <div id="status-chart"></div> <div id="packagers-chart"></div>'; + $total_buildtime = round($buildtime_total / 60, 2); + $avail_capacity = $max_modified * $g_nodes_count; + $capacity_used = round($total_buildtime / $avail_capacity * 100, 2); $s .= sprintf( '<table style="width: 70%%; margin: 2em 0 2em 80px;"> - <tr><td>Total time</td><td>%s hours</td></tr> + <tr><td>Total time</td><td>%s hours (%s%% of capacity with %d nodes)</td></tr> <tr><td>Average</td><td>%s minutes</td></tr> <tr><td>Builds count</td><td>%s</td></tr> </table>', - round($buildtime_total / 60, 2), + $total_buildtime, + $capacity_used, $buildtime_avg, $build_count ); |