🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

roar-pidusage

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roar-pidusage - npm Package Compare versions

Comparing version
1.1.4
to
1.1.5
+2
-2
lib/stats.js

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

//var args = 'PROCESS ' + pid + ' get workingsetsize,usermodetime,kernelmodetime'
var args = 'path win32_perfformatteddata_perfproc_process where (IDProcess = '+ pid +') get Name, Caption, PercentProcessorTime, WorkingSetPeak, IDProcess /format:list'
var args = 'path win32_perfformatteddata_perfproc_process where (IDProcess = '+ pid +') get Name, Caption, PercentProcessorTime, WorkingSet, IDProcess /format:list'

@@ -168,3 +168,3 @@ var wmic = spawn('wmic', args.split(' '), {detached: true})

stats.cpu = +line.split('=')[1].trim();
} else if (line.indexOf('WorkingSetPeak') === 0) {
} else if (line.indexOf('WorkingSet') === 0) {
stats.workingsetsize = +line.split('=')[1].trim();

@@ -171,0 +171,0 @@ }

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

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