small fixes

This commit is contained in:
Marc Wäckerlin
2016-01-25 08:00:44 +00:00
parent ecd96901f4
commit 124774bf9e
2 changed files with 2 additions and 3 deletions

View File

@@ -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)