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.15 to 2.0.16

8

lib/ps.js

@@ -9,8 +9,8 @@ 'use strict'

function parseTime (timestr, fraction) {
function parseTime (timestr, centisec) {
var time = 0
var tpart = timestr.split(/-|:|\./)
var i = tpart.length - 1
if (i >= 0 && fraction && PLATFORM === 'darwin') { // Fractions of second
time += parseInt(tpart[i--], 10) * 600
if (i >= 0 && centisec && PLATFORM === 'darwin') {
time += parseInt(tpart[i--], 10) * 10
}

@@ -74,3 +74,3 @@ if (i >= 0) { // Seconds

// RSS: is counted as blocks of 1024 bytes
// TIME: format is [[dd-]hh:]ss:mm.pp (pp is the percentage of a minute)
// TIME: format is [[dd-]hh:]mm:ss.cc (cc are centiseconds)
// %CPU: goes from 0 to vcore * 100

@@ -77,0 +77,0 @@ //

{
"name": "pidusage",
"version": "2.0.15",
"version": "2.0.16",
"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