small fixes
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user