From b180e154aa63ccc07e4273ae025262fb4bf456bf Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 7 Jul 2021 19:59:53 +0100 Subject: [PATCH] LibJS: Add thousands separators to nanoseconds multiplier value Increases readability. Thanks to @nico for noticing this! --- Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp index 1a0a59721f..3c2e3a8eb4 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Now.cpp @@ -62,7 +62,7 @@ BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object) clock_gettime(CLOCK_REALTIME, &now); Checked ns_timestamp; ns_timestamp += now.tv_sec; - ns_timestamp *= 1000000000; + ns_timestamp *= 1'000'000'000; ns_timestamp += now.tv_nsec; if (ns_timestamp.has_overflow()) { // TODO: Deal with this before 2262-04-21T00:47:16Z.