fix: change user/system cpu usage

v1.18.x
Barış Soner Uşaklı 6 years ago
parent 5eaa14e746
commit aecdf739fd

@ -76,8 +76,10 @@ function getNodeInfo(callback) {
load: os.loadavg().map(function (load) { return load.toFixed(2); }).join(', '),
},
};
data.process.cpuUsage.user /= 1000;
data.process.cpuUsage.system /= 1000;
data.process.cpuUsage.user /= 1000000;
data.process.cpuUsage.user = data.process.cpuUsage.user.toFixed(2);
data.process.cpuUsage.system /= 1000000;
data.process.cpuUsage.system = data.process.cpuUsage.system.toFixed(2);
data.process.memoryUsage.humanReadable = (data.process.memoryUsage.rss / (1024 * 1024)).toFixed(2);
async.waterfall([

Loading…
Cancel
Save