diff --git a/features/trace/trace.go b/features/trace/trace.go index 163a3783..b22382c4 100644 --- a/features/trace/trace.go +++ b/features/trace/trace.go @@ -406,7 +406,7 @@ func ParseRawMsg2Html(w http.ResponseWriter, r *http.Request) { if traceData.DecMsg == "" { htmlFile := fmt.Sprintf("traceDecMessage-%d-%d.html", traceData.TaskID, traceData.ID) filePath = config.GetYamlConfig().OMC.FrontTraceDir + "/" + htmlFile - command := fmt.Sprintf("/usr/local/omc/bin/data2html -f %s -t %s -i N%d -d %x", filePath, traceData.Timestamp, traceData.IfType, traceData.RawMsg) + command := fmt.Sprintf("/usr/local/omc/bin/data2html -f %s -t %d -i N%d -d %x", filePath, traceData.Timestamp, traceData.IfType, traceData.RawMsg) out, err := run.ExecCmd(command, "/") log.Tracef("Exec output: %v", string(out)) if err != nil { diff --git a/lib/dborm/dborm.go b/lib/dborm/dborm.go index d6206846..58f43567 100644 --- a/lib/dborm/dborm.go +++ b/lib/dborm/dborm.go @@ -1740,7 +1740,7 @@ type TraceData struct { IfType int `json:"ifType" xorm:"if_type"` MsgType int `json:"msgType" xorm:"msg_type"` MsgDirect int `json:"msgDirect" xorm:"msg_direct"` - Timestamp string `json:"timestamp" xorm:"timestamp"` + Timestamp int64 `json:"timestamp" xorm:"timestamp"` RawMsg []byte `json:"rawMsg" xorm:"raw_msg"` DecMsg string `json:"decMsg" xorm:"dec_msg"` }