跟SaveUikey关系不大,应该是max没有区分7/30的hash key造成写入es被统一对待了

This commit is contained in:
zhangkun9038@dingtalk.com 2025-01-14 17:15:30 +08:00
parent ae694f58d6
commit 902a973717

2
maX.go
View File

@ -95,7 +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
did := "maX" + ToString(mx.Count) + mx.InstID + "|" + mx.Period + "|" + s
logrus.Debug("did of max:", did)
hs := HashString(did)
mx.Id = hs