commit df7767697798e1c2d9d1c8c777577adea7f4b342 parent abbf899b97ed09f215455be3cab8501b5da92860 Author: Florian Dold <florian@dold.me> Date: Thu, 12 Aug 2021 19:20:32 +0200 convert performance.now to integer before converting to BigInt Diffstat:
| M | 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 @@ -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);