add lastUpdate to candle and max

This commit is contained in:
zhangkun9038@dingtalk.com 2024-12-19 17:00:57 +08:00
parent fe376c6be8
commit 104143800a

1
maX.go
View File

@ -95,6 +95,7 @@ func Int64ToTime(ts int64) (time.Time, error) {
func (mx *MaX) PushToWriteLogChan(cr *Core) error {
s := strconv.FormatFloat(float64(mx.Ts), 'f', 0, 64)
did := mx.InstID + mx.Period + s
fmt.Println("did of max:", did)
mx0 := MaX{}
mx0.InstID = mx.InstID
mx0.Period = mx.Period