mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibJS: Add thousands separators to nanoseconds multiplier value
Increases readability. Thanks to @nico for noticing this!
This commit is contained in:
parent
6319796f58
commit
b180e154aa
Notes:
sideshowbarker
2024-07-18 10:09:16 +09:00
Author: https://github.com/linusg
Commit: b180e154aa
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ BigInt* system_utc_epoch_nanoseconds(GlobalObject& global_object)
|
|||
clock_gettime(CLOCK_REALTIME, &now);
|
||||
Checked<i64> 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue