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:
@@ -1157,7 +1157,7 @@ ${validResults.map(r => `• ${r.timeframe}: ${r.analysis?.recommendation} (${r.
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate next analysis timing
|
// 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
|
let nextAnalysisIn = 0
|
||||||
|
|
||||||
if (this.isRunning && session.nextScheduled) {
|
if (this.isRunning && session.nextScheduled) {
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user