Skip to content

process.uptime() not correct when adjust time #2573

@yjhjstz

Description

@yjhjstz

Now , iojs use relative time to compute uptime[1], but when call settimeofday to change time,
process.time() isn't correct. So, my PR #2572 is to slove this, using time that refer to the kernel boot time.
That's always ok at most platforms.

refer [1]: https://en.wikipedia.org/wiki/Uptime

Metadata

Metadata

Assignees

No one assigned

    Labels

    processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions