summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib.php')
-rw-r--r--lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.php b/lib.php
index 0dc1892..dc5b378 100644
--- a/lib.php
+++ b/lib.php
@@ -59,7 +59,7 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null
$hosts = array();
$buildtime_total = array();
- $build_dates = array();
+ $build_dates = array_fill_keys(range(0, 23), 0);
foreach ($list_of_files as $val) {
@@ -114,7 +114,7 @@ function get_refined_packages_list($list_of_files, $package = null, $user = null
$pkgs[$key]['buildtime']['end'] = round($val[12]);
$pkgs[$key]['buildtime']['diff'] = $pkgs[$key]['buildtime']['end'] - $pkgs[$key]['buildtime']['start'];
- @$build_dates[date('H', $pkgs[$key]['buildtime']['start'])] += 1;
+ @$build_dates[date('G', $pkgs[$key]['buildtime']['start'])] += 1;
// keep obviously dubious values out of there
// 12 hours is be an acceptable threshold given current BS global perfs