파싱 수정

main
JungJun 2 years ago
parent 729ef1e677
commit d551ae2e59

@ -430,10 +430,10 @@ func (statInfos *StatInfos) ChangeByteToString(statInfo []byte) *icserror.IcsErr
statInfos.RspTime = string(statInfo[REQ_TIME:RES_TIME])
}
clientIp := string(statInfo[REQ_TIME:RES_TIME])
clientIp := string(statInfo[RES_TIME:CLIENT_IP])
// fmt.Println("seqid ", statInfo[STAT_INFO : SEQ_ID])
n = bytes.Index([]byte(clientIp), []byte{0})
if n != -1 && n < RES_TIME {
if n != -1 && n < CLIENT_IP {
statInfos.ClientIp = string([]byte(clientIp)[:n])
} else {
statInfos.ClientIp = string(statInfo[RES_TIME:CLIENT_IP])
@ -565,10 +565,10 @@ func (statInfos *StatInfos) ChangeByteToString(statInfo []byte) *icserror.IcsErr
statInfos.SvcRspTime = string(statInfo[SVC_REQ_TIME:SVC_RSP_TIME])
}
transferNo := string(statInfo[SVC_REQ_TIME:SVC_RSP_TIME])
transferNo := string(statInfo[SVC_RSP_TIME:TRANSFER_NO])
// fmt.Println("seqid ", statInfo[STAT_INFO : SEQ_ID])
n = bytes.Index([]byte(transferNo), []byte{0})
if n != -1 && n < SVC_RSP_TIME {
if n != -1 && n < TRANSFER_NO {
statInfos.TransferNo = string([]byte(transferNo)[:n])
} else {
statInfos.TransferNo = string(statInfo[SVC_RSP_TIME:TRANSFER_NO])

Loading…
Cancel
Save