File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -368,6 +368,18 @@ changes:
368368
369369Returns the system uptime in number of seconds.
370370
371+ The value returned can be inaccurate in some
372+ rare virtualization cases. The issue arises when the virtualized
373+ guest instance shares the kernel with the host system.
374+ Due to the fact that libuv uses a syscall that
375+ provides host's uptime instead of guest's
376+ uptime on OpenVZ, ` os.uptime() ` may also provide
377+ erroneous result.
378+
379+ Please refer to < https://github.com/nodejs/node/issues/36244 > and
380+ < https://github.com/libuv/libuv/issues/3068 > for an exploration of
381+ this issue, until it is resolved by libuv.
382+
371383## ` os.userInfo([options]) `
372384<!-- YAML
373385added: v6.0.0
You can’t perform that action at this time.
0 commit comments