We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f125310 commit 62b5879Copy full SHA for 62b5879
lib/internal/fs/utils.js
@@ -419,10 +419,10 @@ StatsBase.prototype.isSocket = function() {
419
return this._checkModeProperty(S_IFSOCK);
420
};
421
422
-const kNsPerMsBigInt = 10n ** 6n;
423
-const kNsPerSecBigInt = 10n ** 9n;
424
-const kMsPerSec = 10 ** 3;
425
-const kNsPerMs = 10 ** 6;
+const kNsPerMsBigInt = 1_000_000n;
+const kNsPerSecBigInt = 1_000_000_000n;
+const kMsPerSec = 1_000;
+const kNsPerMs = 1_000_000;
426
function msFromTimeSpec(sec, nsec) {
427
return sec * kMsPerSec + nsec / kNsPerMs;
428
}
0 commit comments