From 9b6376a4eeef331b49ce7c1ee10248f2003d9909 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 9 Apr 2017 22:39:59 +0300 Subject: [PATCH] doc: update os.uptime() and process.uptime() info PR-URL: https://github.com/nodejs/node/pull/12294 Fixes: https://github.com/nodejs/node/issues/12291 Reviewed-By: Refael Ackermann Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell --- doc/api/os.md | 5 ++--- doc/api/process.md | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/api/os.md b/doc/api/os.md index 480305a7e1fafa..44bbe0b4371061 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -378,9 +378,8 @@ added: v0.3.3 The `os.uptime()` method returns the system uptime in number of seconds. -*Note*: Within Node.js' internals, this number is represented as a `double`. -However, fractional seconds are not returned and the value can typically be -treated as an integer. +*Note*: On Windows the returned value includes fractions of a second. +Use `Math.floor()` to get whole seconds. ## os.userInfo([options])