[chore] fix CI build: d.Milliseconds undefined (type time.Duration has no field or method Milliseconds)

pull/29/head
q191201771 5 years ago
parent 0509ec5fdd
commit e0e7b485a7

@ -230,7 +230,7 @@ func SEIDelayMS(seiNALU []byte) int {
}
t := time.Unix(a/1e3, a%1e3)
d := time.Now().Sub(t)
return int(d.Milliseconds())
return int(d.Nanoseconds() / 1e6)
}
func parseFlag() string {

Loading…
Cancel
Save