summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-10-23 11:17:45 +0000
committerRomain d'Alverny <rda@mageia.org>2012-10-23 11:17:45 +0000
commit5900aea5385448d52ede157c19395e9e624abd02 (patch)
tree5abe255c2264cdaaea8a81c5e72bd66554475001
parent4a9cd1138228dd06eb280d232a4b450221866f98 (diff)
downloadpkgsubmit-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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.php b/lib.php
index 61ab44b..688ca0f 100644
--- a/lib.php
+++ b/lib.php
@@ -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 {