Skip to content
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