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

doc: os.uptime() temporary bug notice #36503

Closed
wants to merge 6 commits into from
Closed
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
12 changes: 12 additions & 0 deletions doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,18 @@ changes:

Returns the system uptime in number of seconds.

The value returned can be inaccurate in some
rare virtualization cases. The issue arises when the virtualized
guest instance shares the kernel with the host system.
Due to the fact that libuv uses a syscall that
provides host's uptime instead of guest's
uptime on OpenVZ, `os.uptime()` may also provide
erroneous result.

Please refer to <https://github.com/nodejs/node/issues/36244> and
<https://github.com/libuv/libuv/issues/3068> for an exploration of
this issue, until it is resolved by libuv.

## `os.userInfo([options])`
<!-- YAML
added: v6.0.0
Expand Down