Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm_uptime unit #5959

Open
giovanig opened this issue Feb 27, 2025 · 0 comments
Open

pm_uptime unit #5959

giovanig opened this issue Feb 27, 2025 · 0 comments

Comments

@giovanig
Copy link

giovanig commented Feb 27, 2025

Hello,

By issuing the command "pm2 prettylist" is possible to get the information about the current monitored process.

Within the generated json, we can get the number of restarts (restart_time) and the uptime (pm_uptime). My question is regarding the second, pm_uptime, what is the time unit? How can one get the current period (in hour or minute) a process is running?

For example: I am getting huge values, for instance, pm_uptime: 1740443604065 (I suppose this is timestamp). How to convert this to hours to have the uptime of that process for instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant