Skip to content

pm_uptime unit #5959

@giovanig

Description

@giovanig

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions