Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 2.0.11 to 2.0.12

4

lib/ps.js

@@ -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",

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