You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2018/02/16 19:31:09 UTC

[kibble] 01/02: fix 'other jobs' count

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git

commit 786c99edfd7c643874e378552454d1ac35b46c60
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Feb 16 20:30:47 2018 +0100

    fix 'other jobs' count
---
 api/pages/ci/top-buildtime.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/pages/ci/top-buildtime.py b/api/pages/ci/top-buildtime.py
index 8b88173..6aded75 100644
--- a/api/pages/ci/top-buildtime.py
+++ b/api/pages/ci/top-buildtime.py
@@ -167,9 +167,9 @@ def run(API, environ, indata, session):
     top = topjobs[0:24]
     if len(topjobs) > 25:
         count = 0
-        for repo in topjobs[25:]:
+        for repo in topjobs[24:]:
             count += repo[1]
-        top.append(["Other jobs", 1, count, '??'])
+        top.append([1, count, "Other jobs", '??'])
     
     tophash = {}
     for v in top:

-- 
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.