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/classes/userCmdInfo.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/classes/userCmdInfo.go')
| -rw-r--r-- | pkg/classes/userCmdInfo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/classes/userCmdInfo.go b/pkg/classes/userCmdInfo.go index a6d9091..04d76b6 100644 --- a/pkg/classes/userCmdInfo.go +++ b/pkg/classes/userCmdInfo.go | |||
| @@ -24,7 +24,7 @@ type UserCmdInfo struct { | |||
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | func ParseUserCmdInfo(data []byte) UserCmdInfo { | 26 | func ParseUserCmdInfo(data []byte) UserCmdInfo { |
| 27 | reader := bitreader.Reader(bytes.NewReader(data), true) | 27 | reader := bitreader.NewReader(bytes.NewReader(data), true) |
| 28 | userCmdInfo := UserCmdInfo{} | 28 | userCmdInfo := UserCmdInfo{} |
| 29 | if reader.TryReadBool() { | 29 | if reader.TryReadBool() { |
| 30 | userCmdInfo.CommandNumber = int32(reader.TryReadBits(32)) | 30 | userCmdInfo.CommandNumber = int32(reader.TryReadBits(32)) |