Skip to content

Commit 231b7e3

Browse files
NikolasHaimerlamateima
authored andcommitted
fix metric
1 parent 20c2477 commit 231b7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/indexer/src/data-indexing/service/genericEventListening.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ async function processLogBatch<TPayload>(
264264
// The block timestamp is in seconds, the batch start is in milliseconds, so we need to divide the batch start by 1000 to get the same unit.
265265
// Converting the block timestamp to milliseconds would be counterproductive as it would be rounded to the nearest second which will give an inaccurate latency measurement.
266266
// We cannot measure the latency below a second, so in the data visualization we can only show the latency in seconds.
267-
batchStart / 1000 - Number(blockTimestamp),
267+
Math.floor(batchStart / 1000 - Number(blockTimestamp)),
268268
tags,
269269
);
270270
} catch (error) {

0 commit comments

Comments
 (0)