diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-10-23 11:17:45 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-10-23 11:17:45 +0000 |
commit | 5900aea5385448d52ede157c19395e9e624abd02 (patch) | |
tree | 5abe255c2264cdaaea8a81c5e72bd66554475001 | |
parent | 4a9cd1138228dd06eb280d232a4b450221866f98 (diff) | |
download | pkgsubmit-5900aea5385448d52ede157c19395e9e624abd02.tar pkgsubmit-5900aea5385448d52ede157c19395e9e624abd02.tar.gz pkgsubmit-5900aea5385448d52ede157c19395e9e624abd02.tar.bz2 pkgsubmit-5900aea5385448d52ede157c19395e9e624abd02.tar.xz pkgsubmit-5900aea5385448d52ede157c19395e9e624abd02.zip |
Do not take seconds for minutes (sorts better between builds)
-rw-r--r-- | lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -469,13 +469,13 @@ S; $newdata['60 minutes'] += $count; } else { $d = explode(' ', $duration); - if ($d[0] >= 20) { + if ($d[0] >= 20 && $d[1] == "minutes") { if (!array_key_exists('20 minutes', $newdata)) { $newdata['20 minutes'] = $count; } else { $newdata['20 minutes'] += $count; } - } elseif ($d[0] >= 10) { + } elseif ($d[0] >= 10 && $d[1] == "minutes") { if (!array_key_exists('10 minutes', $newdata)) { $newdata['10 minutes'] = $count; } else { |