gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: convert performance.now to in


From: gnunet
Subject: [taler-wallet-core] branch master updated: convert performance.now to integer before converting to BigInt
Date: Thu, 12 Aug 2021 19:20:51 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new df776769 convert performance.now to integer before converting to BigInt
df776769 is described below

commit df7767697798e1c2d9d1c8c777577adea7f4b342
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Aug 12 19:20:32 2021 +0200

    convert performance.now to integer before converting to BigInt
---
 packages/taler-wallet-core/src/util/timer.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/taler-wallet-core/src/util/timer.ts 
b/packages/taler-wallet-core/src/util/timer.ts
index 7c849fbc..d9fe3439 100644
--- a/packages/taler-wallet-core/src/util/timer.ts
+++ b/packages/taler-wallet-core/src/util/timer.ts
@@ -91,7 +91,7 @@ export const performanceNow: () => bigint = (() => {
   // @ts-ignore
   if (typeof performance !== "undefined") {
     // @ts-ignore
-    return () => BigInt(performance.now()) * BigInt(1000 * 1000);
+    return () => BigInt(Math.floor(performance.now() * 1000)) * BigInt(1000);
   }
 
   return () => BigInt(0);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]