We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e6bac commit e6c559fCopy full SHA for e6c559f
packages/beacon-node/src/node/notifier.ts
@@ -92,7 +92,7 @@ export async function runNodeNotifier(modules: NodeNotifierModules): Promise<voi
92
switch (sync.state) {
93
case SyncState.SyncingFinalized:
94
case SyncState.SyncingHead: {
95
- const slotsPerSecond = headSlotTimeSeries.computeLinearSpeed();
+ const slotsPerSecond = Math.max(headSlotTimeSeries.computeLinearSpeed(), 0);
96
const distance = Math.max(clockSlot - headSlot, 0);
97
const secondsLeft = distance / slotsPerSecond;
98
const timeLeft = isFinite(secondsLeft) ? prettyTimeDiffSec(secondsLeft) : "?";
0 commit comments