From 60372f0708923493d5d9fed370009626dd6a92c5 Mon Sep 17 00:00:00 2001 From: sneak Date: Mon, 23 Feb 2026 00:59:29 +0700 Subject: [PATCH] Derive request timeout from update interval requestTimeout is now updateInterval - 50ms, ensuring requests complete before the next tick. maxLatency matches requestTimeout. --- src/main.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 250057f..877592d 100644 --- a/src/main.js +++ b/src/main.js @@ -10,8 +10,12 @@ import "./styles.css"; const CONFIG = Object.freeze({ updateInterval: 3000, historyDuration: 300, - requestTimeout: 1500, - maxLatency: 1500, + get requestTimeout() { + return this.updateInterval - 50; + }, + get maxLatency() { + return this.requestTimeout; + }, graphMaxLatency: 1000, yAxisTicks: [0, 250, 500, 750, 1000], xAxisTicks: [0, 60, 120, 180, 240, 300],