From 0c862c2aaa1ac17e07177f13c14e8bd0bc459067 Mon Sep 17 00:00:00 2001 From: Dmytro Date: Mon, 21 Oct 2024 17:13:48 +0100 Subject: [PATCH] Update allowed delay for metrics --- src/components/MetricsWarning.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MetricsWarning.tsx b/src/components/MetricsWarning.tsx index 06eb00c..466e535 100644 --- a/src/components/MetricsWarning.tsx +++ b/src/components/MetricsWarning.tsx @@ -30,10 +30,10 @@ import Message from './Message' import { timestampToDate } from '../core/helper' -const FOUR_HOURS_IN_SECONDS = 4 * 60 * 60 +const MAX_DELAY_SECONDS = 48 * 60 * 60 export default function MetricsWarning(props: { metrics: types.IMetrics | null }) { - if (!props.metrics || Date.now() / 1000 - props.metrics.last_updated < FOUR_HOURS_IN_SECONDS) + if (!props.metrics || Date.now() / 1000 - props.metrics.last_updated < MAX_DELAY_SECONDS) return return (