We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cea358 commit b4e9e26Copy full SHA for b4e9e26
index.js
@@ -260,7 +260,7 @@
260
_this.firstCpuTimes = getCPUS(os);
261
}
262
} catch (err) {
263
-
+ //ignored
264
265
266
@@ -307,11 +307,11 @@
307
308
if (typeof _this.opsys !== 'undefined') {
309
if (typeof appEvent.contextCpuPercentage === 'undefined') {
310
- appEvent.contextCpuPercentage = totalCPU();
+ appEvent.contextCpuPercentage = Math.round(totalCPU());
311
312
313
if(typeof appEvent.contextMemoryPercentage === 'undefined'){
314
- appEvent.contextMemoryPercentage = ((_this.opsys.totalmem() - _this.opsys.freemem())/_this.opsys.totalmem()) * 100
+ appEvent.contextMemoryPercentage = Math.round(((_this.opsys.totalmem() - _this.opsys.freemem())/_this.opsys.totalmem()) * 100);
315
316
317
else{
0 commit comments