dshaw/proc — pull request #2 by bahamas10 (2012-04-25 20:11:19+00:00)
Title: Removing division by lwp count for non lwp specific data

Before with the division, because the count was equal to 3, it would cause most metrics to be off by a factor of 3.

ptime
--------

root@smart:~# ptime -m -p 12779

real 10.523302857
user 0.098928277
sys 0.019388954
trap 0.000015697
tflt 0.000000000
dflt 0.000000000
kflt 0.000000000
lock 18.377873526
slp 10.535459350
lat 0.000268420
stop 0.000022993

proc.js
----------

usage { lwpid: 0,
count: 3,
tstamp: 1110947.541031722,
create: 1110937.522211692,
term: 0,
rtime: 9.172151750666666,
utime: 0.098152338,
stime: 0.019154565,
ttime: 0.000015697,
tftime: 0,
dftime: 0,
kftime: 0,
ltime: 17.377381063,
slptime: 10.021461271,
wtime: 0.00025924,
stoptime: 0.000022993,
minf: 0,
majf: 0,
nswap: 0,
inblk: 0,
outblk: 0,
msnd: 0,
mrcv: 0,
sigs: 0,
vctx: 45,
ictx: 3,
sysc: 487,
ioch: 6118 }