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 2 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
9 changes: 9 additions & 0 deletions doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,15 @@ changes:

Returns the system uptime in number of seconds.

Please be aware that the value returned can be inaccurate in some
schamberg97 marked this conversation as resolved.
Show resolved Hide resolved
rare virtualization cases. The issue arises when the virtualized
guest instance shares the kernel with the host system due to a bug
in libuv. `os.uptime()` may thus provide the host's uptime instead of guest's.
Copy link
Member

Choose a reason for hiding this comment

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

The way this sentence is worded it implies that the bug in libuv is what is responsible for the guest instance sharing the kernel with the host system.


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