diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 20:39:02 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-16 21:39:43 +0300 |
| commit | 81f365e99636104ff81151370048a51e8ae8027a (patch) | |
| tree | 0bd2781ad73fdc982abdcb70f9f44c551ac76bcf /pkg/messages/types/netTick.go | |
| parent | update CI workflow for go 1.21.0 (diff) | |
| download | sdp.go-81f365e99636104ff81151370048a51e8ae8027a.tar.gz sdp.go-81f365e99636104ff81151370048a51e8ae8027a.tar.bz2 sdp.go-81f365e99636104ff81151370048a51e8ae8027a.zip | |
feat: parsing sar custom data (#4)
Diffstat (limited to 'pkg/messages/types/netTick.go')
| -rw-r--r-- | pkg/messages/types/netTick.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/messages/types/netTick.go b/pkg/messages/types/netTick.go index e14f259..bd3464a 100644 --- a/pkg/messages/types/netTick.go +++ b/pkg/messages/types/netTick.go | |||
| @@ -8,7 +8,7 @@ type NetTick struct { | |||
| 8 | HostFrameTimeStdDeviation int16 | 8 | HostFrameTimeStdDeviation int16 |
| 9 | } | 9 | } |
| 10 | 10 | ||
| 11 | func ParseNetTick(reader *bitreader.ReaderType) NetTick { | 11 | func ParseNetTick(reader *bitreader.Reader) NetTick { |
| 12 | return NetTick{ | 12 | return NetTick{ |
| 13 | Tick: int32(reader.TryReadBits(32)), | 13 | Tick: int32(reader.TryReadBits(32)), |
| 14 | HostFrameTime: int16(reader.TryReadBits(16) / 10e5), | 14 | HostFrameTime: int16(reader.TryReadBits(16) / 10e5), |