mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +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
|
lastTime = t
|
||||||
}
|
}
|
||||||
|
|
||||||
if lastTime.Before(until) && until.Sub(lastTime) > intervalDuration*2 {
|
if lastTime.Before(until) && until.Sub(lastTime) > intervalDuration {
|
||||||
timeRanges = append(timeRanges, TimeRange{
|
timeRanges = append(timeRanges, TimeRange{
|
||||||
Start: lastTime,
|
Start: lastTime,
|
||||||
End: until,
|
End: until,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user