arunoda / node-usage

process usage lookup with nodejs
MIT License
389 stars 93 forks source link

what are units of returned values? #22

Open lapsio opened 10 years ago

lapsio commented 10 years ago

is memory usage returned in bytes? 0.2 cpu means 0.2% or 20%?

arunoda commented 10 years ago

it's on percentage. 0.2 = 0.2%

On Mon, Mar 10, 2014 at 1:35 PM, lapsio notifications@github.com wrote:

is memory usage returned in bytes? 0.2 cpu means 0.2% or 20%?

— Reply to this email directly or view it on GitHubhttps://github.com/arunoda/node-usage/issues/22 .

Arunoda Susiripala

@arunoda http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

mmarchini commented 10 years ago

CPU is shown as percentage (0.2 = 0.2%) and memory is shown in bytes.

From the README example:

{ cpu: 10.6, //in percentage memory: 100065280 //in no of bytes }