Socket
Socket
Sign inDemoInstall

pidusage

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pidusage - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

2

lib/stats.js

@@ -154,3 +154,3 @@ var os = require('os')

if(!stdout || code !== 0) {
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)
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"%s', args, os.EOL)

@@ -157,0 +157,0 @@ stderr = error + (stderr ? format('Wmic reported the following error: %s.', stderr) : 'Wmic reported no errors.')

{
"name": "pidusage",
"version": "1.0.7",
"version": "1.0.8",
"description": "Cross-platform process cpu % and memory usage of a PID — Edit",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -57,3 +57,4 @@ var pusage = require('../')

return cb(true)
else if(stat.memory > 209715200) {
// else if(stat.memory > 209715200) {
else if(stat.memory > 5e8) {
console.log("That's enough right?")

@@ -60,0 +61,0 @@ cb(true)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc