Skip to content

Commit

Permalink
fix parseInt
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Nov 4, 2024
1 parent 30553b4 commit e0319a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/peers/[peerName]/lagGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function parseLSN(lsn: string): number {
if (!lsn) return 0;
const [lsn1, lsn2] = lsn.split('/');
return Number(
(BigInt(parseInt(lsn1)) << BigInt(32)) | BigInt(parseInt(lsn2))
(BigInt(parseInt(lsn1, 16)) << BigInt(32)) | BigInt(parseInt(lsn2, 16))
);
}

Expand Down

0 comments on commit e0319a4

Please sign in to comment.