diff --git a/nodejs/public/javascripts/servicedock.js b/nodejs/public/javascripts/servicedock.js index 4221227..336fcd8 100644 --- a/nodejs/public/javascripts/servicedock.js +++ b/nodejs/public/javascripts/servicedock.js @@ -672,8 +672,7 @@ function stats(data) { var s = data[name]; var o = oldstats[name]; if (!o|| !s) continue; - $('text:contains("'+name+'") + text + text').css('background-color: red'); - $('text:contains("'+name+'") + text + text') + $('text + text:contains("'+name+'") + text') .html('cpu: ' +(Math.round((s.cpuacct.usage.data-o.cpuacct.usage.data) /(s.cpuacct.usage.date-o.cpuacct.usage.date) diff --git a/nodejs/sockets/index.js b/nodejs/sockets/index.js index bf40ea7..f5def9f 100644 --- a/nodejs/sockets/index.js +++ b/nodejs/sockets/index.js @@ -228,7 +228,7 @@ module.exports = function(io) { date: (new Date()).getTime(), data: {} }; - if (err) {cb3(err); return} + if (err) {cb3(); console.log(err); return} data.trim().split('\n').forEach(function(v, i) { var vals = v.split(' '); switch (vals.length) {