Comparing version 0.0.23 to 0.0.24
@@ -70,6 +70,7 @@ "use strict"; | ||
const start = Utils.time(); | ||
this.cpuUsage = process.cpuUsage(this.cpuUsage); | ||
(level > -1) && this.refresh(); | ||
const mem = process.memoryUsage(); | ||
const total = process.cpuUsage(); | ||
const usage = this.cpuUsage = process.cpuUsage(this.cpuUsage); | ||
const mem = (level > -2) ? process.memoryUsage() : undefined; | ||
const total = (level > -2) ? process.cpuUsage() : undefined; | ||
const usage = (level > -2) ? this.cpuUsage : undefined; | ||
const cpus = (level > -2) ? os.cpus().map(c => (Object.assign({ model: c.model, speed: c.speed }, c.times))) : undefined; | ||
@@ -76,0 +77,0 @@ const networks = (level > -2) ? Object.entries(os.networkInterfaces()) |
{ | ||
"name": "exer", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "Utils in TypeScript, Debug, NanoTimer ...", | ||
@@ -42,5 +42,7 @@ "author": "kbajalc@gmail.com", | ||
"devDependencies": { | ||
"@types/chance": "^1.0.2", | ||
"@types/lodash": "^4.14.123", | ||
"@types/node": "^10.14.6", | ||
"@types/uuid": "^3.4.4", | ||
"chance": "^1.0.18", | ||
"ts-node": "^8.1.0", | ||
@@ -47,0 +49,0 @@ "tslint": "^5.16.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178661
2421
10