From 71b39aefc1400ebc326a6550e456fd608b324aa2 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 06779dbb37cf70..3196efb5b0fc83 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])