forked from quic-go/quic-go
Merge pull request #2466 from lucas-clemente/qlog-fix-reference-time
fix precision of reference_time field in qlog
This commit is contained in:
@@ -46,7 +46,7 @@ func (f commonFields) MarshalJSONObject(enc *gojay.Encoder) {
|
|||||||
enc.StringKey("ODCID", f.ODCID.String())
|
enc.StringKey("ODCID", f.ODCID.String())
|
||||||
enc.StringKey("group_id", f.ODCID.String())
|
enc.StringKey("group_id", f.ODCID.String())
|
||||||
enc.StringKeyOmitEmpty("protocol_type", f.ProtocolType)
|
enc.StringKeyOmitEmpty("protocol_type", f.ProtocolType)
|
||||||
enc.Float64Key("reference_time", float64(f.ReferenceTime.UnixNano()/1e6))
|
enc.Float64Key("reference_time", float64(f.ReferenceTime.UnixNano())/1e6)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f commonFields) IsNil() bool { return false }
|
func (f commonFields) IsNil() bool { return false }
|
||||||
|
|||||||
Reference in New Issue
Block a user