diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-06 07:25:39 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-06 07:25:39 +0000 |
commit | 9a538cf137335d6f921c9e64d68223ff386fefe1 (patch) | |
tree | 0ef47de9153a0c9b6f074612f2d804412769eaa5 /test_index.php | |
parent | 147168e567e8b7d98097aa804818a816104b862b (diff) | |
download | pkgsubmit-9a538cf137335d6f921c9e64d68223ff386fefe1.tar pkgsubmit-9a538cf137335d6f921c9e64d68223ff386fefe1.tar.gz pkgsubmit-9a538cf137335d6f921c9e64d68223ff386fefe1.tar.bz2 pkgsubmit-9a538cf137335d6f921c9e64d68223ff386fefe1.tar.xz pkgsubmit-9a538cf137335d6f921c9e64d68223ff386fefe1.zip |
fix capacity and usage computation
Diffstat (limited to 'test_index.php')
-rw-r--r-- | test_index.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test_index.php b/test_index.php index 8f8d347..32f909e 100644 --- a/test_index.php +++ b/test_index.php @@ -268,9 +268,9 @@ 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); + $total_buildtime = round($buildtime_total / 60, 1); + $avail_capacity = 24 * $max_modified * $g_nodes_count; + $capacity_used = round($total_buildtime / $avail_capacity * 100, 1); $s .= sprintf( '<table style="width: 70%%; margin: 2em 0 2em 80px;"> <tr><td>Total time</td><td>%s hours (%s%% of capacity with %d nodes)</td></tr> @@ -279,7 +279,7 @@ if ($total > 0) { </table>', $total_buildtime, $capacity_used, - $nodes_count, + $g_nodes_count, $buildtime_avg, $build_count ); |