From 4f1028f156087ee5898caaccae98e780d1b46533 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 6 Sep 2012 06:51:19 +0000 Subject: capacity build time stats --- test_index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test_index.php') 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) {
'; + $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( ' - +
Total time%s hours
Total time%s hours (%s%% of capacity with %d nodes)
Average%s minutes
Builds count%s
', - round($buildtime_total / 60, 2), + $total_buildtime, + $capacity_used, $buildtime_avg, $build_count ); -- cgit v1.2.1