Skip to content

Commit ad99384

Browse files
authored
Merge 6480bc5 into f69bc11
2 parents f69bc11 + 6480bc5 commit ad99384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/beacon-node/src/node/notifier.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export async function runNodeNotifier(modules: NodeNotifierModules): Promise<voi
9292
switch (sync.state) {
9393
case SyncState.SyncingFinalized:
9494
case SyncState.SyncingHead: {
95-
const slotsPerSecond = headSlotTimeSeries.computeLinearSpeed();
95+
const slotsPerSecond = Math.max(headSlotTimeSeries.computeLinearSpeed(), 0);
9696
const distance = Math.max(clockSlot - headSlot, 0);
9797
const secondsLeft = distance / slotsPerSecond;
9898
const timeLeft = isFinite(secondsLeft) ? prettyTimeDiffSec(secondsLeft) : "?";

0 commit comments

Comments
 (0)