pretty-hrtime
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -10,3 +10,3 @@ /*jshint node:true */ | ||
module.exports = function (source, opts) { | ||
var verbose, precise, i, spot, sourceAtStep, valAtStep, decimals, strAtStep, results; | ||
var verbose, precise, i, spot, sourceAtStep, valAtStep, decimals, strAtStep, results, totalSeconds; | ||
@@ -27,2 +27,9 @@ verbose = false; | ||
// normalize source array due to changes in node v5.4+ | ||
if (source[1] < 0) { | ||
totalSeconds = source[0] + source[1] / 1e9; | ||
source[0] = parseInt(totalSeconds); | ||
source[1] = parseFloat((totalSeconds % 1).toPrecision(9)) * 1e9; | ||
} | ||
results = ''; | ||
@@ -29,0 +36,0 @@ |
{ | ||
"name": "pretty-hrtime", | ||
"description": "process.hrtime() to words", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"homepage": "https://github.com/robrich/pretty-hrtime", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/robrich/pretty-hrtime.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6350
71