From 147168e567e8b7d98097aa804818a816104b862b Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Thu, 6 Sep 2012 07:18:47 +0000 Subject: show continuous time scale --- lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib.php') 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 -- cgit v1.2.1