mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
service: fix FindMissingTimeRanges until check
This commit is contained in:
parent
6c6d5a27a8
commit
b32b852303
|
@ -417,7 +417,7 @@ func (s *BacktestService) FindMissingTimeRanges(ctx context.Context, ex types.Ex
|
|||
lastTime = t
|
||||
}
|
||||
|
||||
if lastTime.Before(until) && until.Sub(lastTime) > intervalDuration*2 {
|
||||
if lastTime.Before(until) && until.Sub(lastTime) > intervalDuration {
|
||||
timeRanges = append(timeRanges, TimeRange{
|
||||
Start: lastTime,
|
||||
End: until,
|
||||
|
|
Loading…
Reference in New Issue
Block a user