|
|
@ -430,10 +430,10 @@ func (statInfos *StatInfos) ChangeByteToString(statInfo []byte) *icserror.IcsErr
|
|
|
|
statInfos.RspTime = string(statInfo[REQ_TIME:RES_TIME])
|
|
|
|
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])
|
|
|
|
// fmt.Println("seqid ", statInfo[STAT_INFO : SEQ_ID])
|
|
|
|
n = bytes.Index([]byte(clientIp), []byte{0})
|
|
|
|
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])
|
|
|
|
statInfos.ClientIp = string([]byte(clientIp)[:n])
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
statInfos.ClientIp = string(statInfo[RES_TIME:CLIENT_IP])
|
|
|
|
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])
|
|
|
|
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])
|
|
|
|
// fmt.Println("seqid ", statInfo[STAT_INFO : SEQ_ID])
|
|
|
|
n = bytes.Index([]byte(transferNo), []byte{0})
|
|
|
|
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])
|
|
|
|
statInfos.TransferNo = string([]byte(transferNo)[:n])
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
statInfos.TransferNo = string(statInfo[SVC_RSP_TIME:TRANSFER_NO])
|
|
|
|
statInfos.TransferNo = string(statInfo[SVC_RSP_TIME:TRANSFER_NO])
|
|
|
|