fix: Use dynamic analysis interval based on actual timeframe

- Replace hardcoded 300 seconds (5 min) with calculated interval from timeframe
- analysisInterval now correctly shows 3600 seconds (60 min) for 1h timeframe
- Timer will properly display correct intervals for all timeframes (5m = 300s, 1h = 3600s, etc.)
This commit is contained in:
mindesbunister
2025-07-24 11:57:39 +02:00
parent 2db492dd54
commit 8717d1329c
2 changed files with 1 additions and 1 deletions

View File

@@ -1157,7 +1157,7 @@ ${validResults.map(r => `• ${r.timeframe}: ${r.analysis?.recommendation} (${r.
}
// Calculate next analysis timing
const analysisInterval = 300 // 5 minutes in seconds
const analysisInterval = Math.floor(this.getIntervalFromTimeframe(session.timeframe) / 1000) // Convert to seconds
let nextAnalysisIn = 0
if (this.isRunning && session.nextScheduled) {

Binary file not shown.