mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
xmaker: fix reset today
This commit is contained in:
parent
1d316ed89c
commit
5e2b8af4dc
|
@ -108,7 +108,7 @@ func (s *ProfitStats) AddTrade(trade types.Trade) {
|
|||
}
|
||||
|
||||
func (s *ProfitStats) IsOver24Hours() bool {
|
||||
return time.Now().Sub(time.Unix(s.TodaySince, 0)) >= 24*time.Hour
|
||||
return time.Since(time.Unix(s.TodaySince, 0)) > 24*time.Hour
|
||||
}
|
||||
|
||||
func (s *ProfitStats) ResetToday() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user