Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/procfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ function readProcFile (pid, options, done) {
cpu: cpu,
memory: memory,
ctime: (stat.utime + stat.stime) / cpuInfo.clockTick,
elapsed: date - (stat.start * 1000),
timestamp: stat.start * 1000, // start date
elapsed: (stat.uptime * 1000) - (stat.start * 1000), // process uptime minus start time
timestamp: date,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this should be the uptime of the process in ms since epoch but I'm not sure. @simonepri could you confirm? Thanks!

pid: pid,
ppid: stat.ppid
})
Expand Down