@dnlup/doc
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -67,7 +67,10 @@ 'use strict' | ||
/** | ||
* We have to truncate the value here because `record` | ||
* We have to adjust the value here because `record` | ||
* only accepts integer values: | ||
* https://github.com/nodejs/node/blob/cdad3d8fe5f468aec6549fd59db73a3bfe063e3c/lib/internal/histogram.js#L283-L284 | ||
*/ | ||
this[kHistogram].record(Math.trunc(ns)) | ||
const val = Math.round(ns) | ||
if (val > 0) { | ||
this[kHistogram].record(val) | ||
} | ||
} | ||
@@ -74,0 +77,0 @@ |
{ | ||
"name": "@dnlup/doc", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "Get usage and health data about your Node.js process", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
49244
881