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 0.0.3 to 0.0.4

1

index.js

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

sunos: wrapper('ps'),
freebsd: wrapper('ps'),
win: wrapper('win'),

@@ -23,0 +24,0 @@ linux: wrapper('proc'),

2

package.json
{
"name": "pidusage",
"version": "0.0.3",
"version": "0.0.4",
"description": "Process cpu % and memory use of a PID",

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

@@ -32,3 +32,3 @@ pidusage

### Linux
We use `/proc/{pid}/stat` in addition to the the `PAGE_SIZE` and the `CLK_TCK` direclty from `getconf()` command. Uptime comes from the nodejs `os.uptime()`.
We use `/proc/{pid}/stat` in addition to the the `PAGE_SIZE` and the `CLK_TCK` direclty from `getconf()` command. Uptime comes from `proc/uptime` file because it's more accurate than the nodejs `os.uptime()`.

@@ -35,0 +35,0 @@ ### On darwin, freebsd, solaris (tested on 10/11)

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