summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-08-20 16:11:08 +0200
committerSergey Lukin <sergej.lukin@gmail.com>2015-08-21 11:54:24 +0300
commitc8ca80e0d8d363a2bf99944d27d2f5ca423a1aec (patch)
tree0c095d5d0a3a9a4065422b97711153b7068011fb
parent6aefb731e00e5638f10be928707d67bc4421e3f2 (diff)
downloadbuild-server-status-c8ca80e0d8d363a2bf99944d27d2f5ca423a1aec.tar.bz2
build-server-status-c8ca80e0d8d363a2bf99944d27d2f5ca423a1aec.tar.xz
Filter out hostnames that does not start with 'build-'HEADmaster
-rw-r--r--index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.html b/index.html
index ffff58f..a8e63ce 100644
--- a/index.html
+++ b/index.html
@@ -68,8 +68,9 @@
// called when a message arrives
function onMessageArrived(message) {
var host = message.destinationName || null;
- host = host ? host.split("build/build-").pop() : null;
- mqtt_msg(host,message.payloadString);
+ host = host ? host.split("/").pop() : null;
+ if (host.match(/^build-/))
+ mqtt_msg(host,message.payloadString);
}
setTimeout('sort_table();', 1500);