mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: check if profitStats.Since.IsZero
This commit is contained in:
parent
f1919a2b43
commit
b358cec235
|
@ -33,7 +33,7 @@ func (f *ProfitFixer) Fix(parent context.Context, since, until time.Time, initia
|
|||
|
||||
defer log.Infof("profitFixer: done")
|
||||
|
||||
if profitStats.Since != nil && profitStats.Since.Before(since) {
|
||||
if profitStats.Since != nil && !profitStats.Since.IsZero() && profitStats.Since.Before(since) {
|
||||
log.Infof("profitFixer: profitStats.since %s is ealier than the given since %s, setting since to %s", profitStats.Since, since, profitStats.Since)
|
||||
since = *profitStats.Since
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user