From fca11a6b0f842e7436262af25f23fe20b094d9fa Mon Sep 17 00:00:00 2001 From: yuyi Date: Thu, 23 Sep 2021 16:46:03 -0500 Subject: [PATCH] convert time in milliscond to second. --- stompserver/traceDef.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stompserver/traceDef.go b/stompserver/traceDef.go index 7a6e0d3..83f96ea 100644 --- a/stompserver/traceDef.go +++ b/stompserver/traceDef.go @@ -47,6 +47,10 @@ func NewTrace(lfn string, site string, ts int64, jobtype string, wnname string, if usrdn == "" { usrdn = "unknown" } + // some of the ts is using milliseconds , such as xrootd data. We fix here to avoid going to each data source + if ts > 1000000000000 { + ts = ts / 1000 + } trc := Trace{ Account: account, ClientState: "DONE",