Comparing version 1.0.6 to 1.0.7
@@ -154,6 +154,7 @@ var os = require('os') | ||
if(!stdout || code !== 0) { | ||
var error = 'Wmic errored, please open an issue on https://github.com/soyuka/pidusage with this message.' | ||
stderr = error + os.EOL + (stderr ? format('Wmic reported the following error: %s.', stderr) : 'Wmic reported no errors.') | ||
stderr = format('%s %s Wmic exited with code %d.', stderr, os.EOL, code) | ||
stdout ? stderr = format('%s %s Stdout was %s', stderr, os.EOL, stdout) : null | ||
var error = util.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"%s', args, 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 | ||
@@ -173,4 +174,4 @@ return done(new Error(stderr , null)) | ||
//https://msdn.microsoft.com/en-us/library/aa394597(v=vs.85).aspx | ||
//https://msdn.microsoft.com/en-us/library/ms974615.aspx | ||
//https://msdn.microsoft.com/en-us/library/aa394597(v=vs.85).aspx | ||
//https://msdn.microsoft.com/en-us/library/ms974615.aspx | ||
@@ -177,0 +178,0 @@ if (self.history[pid] !== undefined) { |
{ | ||
"name": "pidusage", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Cross-platform process cpu % and memory usage of a PID — Edit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
24646
436