Comparing version 1.1.3 to 1.1.4
@@ -123,2 +123,3 @@ var os = require('os') | ||
var args = 'PROCESS ' + pid + ' get workingsetsize,usermodetime,kernelmodetime' | ||
var wmic = spawn('wmic', args.split(' '), {detached: true}) | ||
@@ -148,8 +149,8 @@ var stdout = '' | ||
var error = format('%s Wmic errored, please open an issue on https://github.com/soyuka/pidusage with this message.%s', new Date().toString(), os.EOL) | ||
error += format('Command was "wmic %s", release is %s%s', args, os.release(), os.EOL) | ||
stderr = error + (stderr ? format('Wmic reported the following error: %s.', stderr) : 'Wmic reported no errors.') | ||
stderr = format('%s%s%s Wmic exited with code %d.%s', os.EOL, stderr, os.EOL, code, os.EOL) | ||
stdout ? stderr = format('%s%s Stdout was %s', stderr, os.EOL, stdout) : null | ||
error += format('Command was "wmic %s" %s System informations: %s - release: %s %s - type %s %s', args, os.EOL, os.EOL, os.release(), os.EOL, os.type(), os.EOL) | ||
stderr = error + (stderr ? format('Wmic reported the following error: %s.', stderr) : 'Wmic reported no errors (stderr empty).') | ||
stderr = format('%s%s%sWmic exited with code %d.', os.EOL, stderr, os.EOL, code) | ||
stderr = format('%s%sStdout was %s', stderr, os.EOL, stdout ? stdout : 'empty') | ||
return done(new Error(stderr , null)) | ||
return done(new Error(stderr, null)) | ||
} | ||
@@ -180,2 +181,3 @@ | ||
}) | ||
wmic.stdin.end() | ||
} | ||
@@ -182,0 +184,0 @@ } |
{ | ||
"name": "pidusage", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Cross-platform process cpu % and memory usage of a PID — Edit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -73,4 +73,8 @@ pidusage | ||
#### pidusage-tree | ||
If you want to compute a pidusage tree take a look at [pidusage-tree](https://github.com/soyuka/pidusage-tree). | ||
## Licence | ||
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
23949
423
80