diff options
author | cjihrig <cjihrig@gmail.com> | 2018-04-26 01:56:44 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-04-26 20:54:10 +0300 |
commit | 124875cab2ab129b0e1689c7727d5eaeab4618c2 (patch) | |
tree | b7658c61c38be27bf49c3634d2726efff96d15b4 /doc/api/os.md | |
parent | bda2eaf3d5967603eeb2c498058a5256a3dc37d1 (diff) |
doc: remove os.uptime() Windows note
The libuv 1.20.2 update in Node 10 aligned the Windows behavior
of os.uptime() with that of other operating systems. The return
value no longer contains a fraction component.
Refs: https://github.com/nodejs/node/pull/20129
PR-URL: https://github.com/nodejs/node/pull/20308
Refs: https://github.com/nodejs/node/pull/20129
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/os.md')
-rw-r--r-- | doc/api/os.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/api/os.md b/doc/api/os.md index aa074ce0017..d5e70e63f9b 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -381,15 +381,17 @@ systems. ## os.uptime() <!-- YAML added: v0.3.3 +changes: + - version: v10.0.0 + pr-url: https://github.com/nodejs/node/pull/20129 + description: The result of this function no longer contains a fraction + component on Windows. --> * Returns: {integer} The `os.uptime()` method returns the system uptime in number of seconds. -On Windows the returned value includes fractions of a second. Use `Math.floor()` -to get whole seconds. - ## os.userInfo([options]) <!-- YAML added: v6.0.0 |