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

usage

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

usage - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

.rsync-exclude

11

lib/providers/proc/procStat/linux.js
var fs = require('fs');
var STAT_INDEXES = {
STIME: 13,
UTIME: 14,
START_TIME: 21,
RSS: 23
STIME: 11,
UTIME: 12,
START_TIME: 19,
RSS: 21
};

@@ -18,2 +18,3 @@

} else {
data = data.substr(data.lastIndexOf(')') + 2);
var parts = data.split(' ');

@@ -38,2 +39,2 @@ var statObject = {

}
};
};
{
"name": "usage",
"version": "0.3.4",
"description": "simple way to lookup linux process usage",
"keywords": [
"usage",
"ps",
"cpu",
"ram",
"memory"
],
"author": "Arunoda Susiripala <arunoda.susiripala@gmail.com>",
"repository": {
"type": "git",
"url": "git://github.com/arunoda/node-usage.git"
},
"main": "./lib/usage.js",
"scripts": {
"test": "test/index.js"
},
"engines": {
"node": ">= 0.8.x"
},
"dependencies": {
"bindings": "1.x.x"
},
"devDependencies": {
"mocha": "1.8.x"
}
"name": "usage",
"version": "0.3.5",
"description": "simple way to lookup linux process usage",
"keywords": [
"usage",
"ps",
"cpu",
"ram",
"memory"
],
"author": "Arunoda Susiripala <arunoda.susiripala@gmail.com>",
"repository": {
"type": "git",
"url": "git://github.com/arunoda/node-usage.git"
},
"main": "./lib/usage.js",
"scripts": {
"test": "test/index.js"
},
"engines": {
"node": ">= 0.8.x"
},
"dependencies": {
"bindings": "1.x.x"
},
"devDependencies": {
"mocha": "1.8.x"
}
}

@@ -30,3 +30,3 @@ # node-usage [![Build Status](https://travis-ci.org/arunoda/node-usage.png?branch=master)](https://travis-ci.org/arunoda/node-usage)

## Average CPU usage vs Current CPU usage
>This is only apply for Linux
>This is only applicable for Linux

@@ -33,0 +33,0 @@ By default CPU Percentage provided is an average from the starting time of the process. It does not correctly reflect the current CPU usage. (this is also a problem with linux `ps` utility)

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