Skip to content

Commit 481a4f9

Browse files
minor fix
1 parent bdca91d commit 481a4f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

js/lib/publisher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function publisherRoutine(
2222
while (isRunningRef.value) {
2323
let msg = payload;
2424
if (measureRTT) {
25-
msg = process.hrtime.bigint() / 1000;
25+
msg = process.hrtime.bigint() / 1000n;
2626
}
2727

2828
for (const channel of channels) {

js/lib/subscriber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async function subscriberRoutine(
7070

7171
if (measureRTT) {
7272
try {
73-
const now = process.hrtime.bigint() / 1000;
73+
const now = process.hrtime.bigint() / 1000n;
7474
const timestamp = BigInt(message); // µs
7575
const rtt = now - timestamp;
7676

0 commit comments

Comments
 (0)