Comparing version 0.3.4 to 0.3.5
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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16409
24
245