Comparing version 2.0.11 to 2.0.12
@@ -42,3 +42,3 @@ 'use strict' | ||
if (PLATFORM === 'aix') { | ||
args = ['-o', 'etime,pid,ppid,pcpu,rsssize,time', '-p', pArg] | ||
args = ['-o', 'etime,pid,ppid,pcpu,rssize,time', '-p', pArg] | ||
} | ||
@@ -107,3 +107,3 @@ | ||
// time elapsed between calls in seconds | ||
var seconds = Math.abs(hst.etime !== undefined ? etime - hst.etime : etime) | ||
var seconds = Math.abs(hst.elapsed !== undefined ? etime - hst.elapsed : etime) | ||
var cpu = seconds > 0 ? (total / seconds) * 100 : 0 | ||
@@ -110,0 +110,0 @@ |
{ | ||
"name": "pidusage", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Cross-platform process cpu % and memory usage of a PID", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
28168