Skip to content

Commit

Permalink
convert time in milliscond to second.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyiguo committed Sep 23, 2021
1 parent 0252890 commit fca11a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions stompserver/traceDef.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fca11a6

Please sign in to comment.