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 fde6ffe3722ed4b593e873518c43559e86474927
Author: Daniel Gruno <humbed...@apache.org>
AuthorDate: Fri Feb 16 22:23:09 2018 +0100

    guard against no data available
---
 api/pages/ci/queue.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/api/pages/ci/queue.py b/api/pages/ci/queue.py
index 70b77d7..960be94 100644
--- a/api/pages/ci/queue.py
+++ b/api/pages/ci/queue.py
@@ -162,6 +162,7 @@ def run(API, environ, indata, session):
     timeseries = []
     for bucket in res['aggregations']['timeseries']['buckets']:
         ts = int(bucket['key'] / 1000)
+        bucket['wait']['value'] = bucket['wait'].get('value', 0) or 0
         timeseries.append({
             'date': ts,
             'queue size': bucket['size']['value'],

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

Reply via email to