summaryrefslogtreecommitdiffstats
path: root/lib.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-06 07:18:47 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-06 07:18:47 +0000
commit147168e567e8b7d98097aa804818a816104b862b (patch)
tree0a3326b3cfca3d98518145dfeb8dba0d0c17124a /lib.php
parent7faaa2d8bec60efeef1cde32c0edbe2d91e1604a (diff)
downloadpkgsubmit-147168e567e8b7d98097aa804818a816104b862b.tar
pkgsubmit-147168e567e8b7d98097aa804818a816104b862b.tar.gz
pkgsubmit-147168e567e8b7d98097aa804818a816104b862b.tar.bz2
pkgsubmit-147168e567e8b7d98097aa804818a816104b862b.tar.xz
pkgsubmit-147168e567e8b7d98097aa804818a816104b862b.zip
show continuous time scale
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