Skip to content

Commit

Permalink
Merge pull request #44 from yuyiguo/bug1
Browse files Browse the repository at this point in the history
convert time in millisecond to second.
  • Loading branch information
yuyiguo authored Sep 23, 2021
2 parents 0252890 + fca11a6 commit 06f3ab9
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 06f3ab9

Please sign in to comment.