[gnome-continuous] build.gnome.org: Correctly check length of status array



commit 3deac601e8fcd3fe144cc5be5aa041f40adcb1e1
Author: Colin Walters <walters verbum org>
Date:   Thu Nov 7 07:34:15 2013 -0500

    build.gnome.org: Correctly check length of status array

 extras/build.gnome.org/build.gnome.org.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/extras/build.gnome.org/build.gnome.org.js b/extras/build.gnome.org/build.gnome.org.js
index 2dc0dc5..fcc1cf9 100644
--- a/extras/build.gnome.org/build.gnome.org.js
+++ b/extras/build.gnome.org/build.gnome.org.js
@@ -140,7 +140,7 @@
             $(runningStateNode).empty();
             var text;
             console.log("status=" + JSON.stringify(status));
-            if (status.running) {
+            if (status.running.length > 0) {
                 text = 'Running: ' + status.running.join(' ') + '; load=' + status.systemLoad[0];
             } else {
                 text = 'Idle, awaiting commits';


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]