diff --git a/business/jxstore/event/event_tcp_utils.go b/business/jxstore/event/event_tcp_utils.go index 989ea3261..cf52e5344 100644 --- a/business/jxstore/event/event_tcp_utils.go +++ b/business/jxstore/event/event_tcp_utils.go @@ -575,12 +575,18 @@ func int2h8l8(i int64) (h, l string) { r2, _ := strconv.ParseInt(end8, 2, 32) h = fmt.Sprintf("%x", r1) l = fmt.Sprintf("%x", r2) - if len(h)%2 != 0 { + if len(h) < 2 { h = "0" + h } - if len(l)%2 != 0 { + if len(l) < 2 { l = "0" + l } + //if len(h)%2 != 0 { + // h = "0" + h + //} + //if len(l)%2 != 0 { + // l = "0" + l + //} return h, l }