Skip to content

Commit

Permalink
feat(adaptive):add new attribute for compressInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
wqshr12345 committed Oct 24, 2023
1 parent 6ec335d commit 53ff30d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions adaptive/adaptive.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package adaptive
type CompressInfo struct {
PkgId int
CompressType int
DataLen int //original data
CompressTime int64
TranportTime int64
DecompressTime int64
Expand Down
1 change: 1 addition & 0 deletions adaptive/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ func (r *Reader) fill() error {
endTs := time.Now().UnixNano()
compressInfo := CompressInfo{
PkgId: r.pkgID,
DataLen: len(r.oBuf),
CompressType: int(compressType),
CompressTime: midTs - startTs,
TranportTime: mid2Ts - midTs,
Expand Down

0 comments on commit 53ff30d

Please sign in to comment.