Derive request timeout from update interval
requestTimeout is now updateInterval - 50ms, ensuring requests complete before the next tick. maxLatency matches requestTimeout.
This commit is contained in:
parent
4aaf9c2a49
commit
60372f0708
@ -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],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user