From: Mike Taylor Date: Tue, 4 Mar 2014 16:48:16 +0000 (+0000) Subject: stat event-queueing is per-team. X-Git-Tag: 1.0.0~1332 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=75a31106246500cc5ca1445fcf337a329d6865b0;p=mkws-moved-to-github.git stat event-queueing is per-team. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 039ca55..ee05520 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -221,7 +221,7 @@ function widget($, team, type, node) { function promoteStat() { - mkws.queue("stat").subscribe(function(data) { + mkws.queue("stat." + team.name()).subscribe(function(data) { if (node.length === 0) alert("huh?!"); $(node).html('' + M('Status info') + '' + @@ -313,7 +313,7 @@ function team($, teamName) { function onStat(data) { debug("stat"); - mkws.queue("stat").publish(data); + mkws.queue("stat." + m_teamName).publish(data); }