diff options
-rw-r--r-- | lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |