Skip to content

Commit

Permalink
fix(adaptive):fix compressratio bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
wqshr12345 committed Oct 30, 2023
1 parent 23998c2 commit 55d63f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adaptive/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (r *Reader) fill() error {
CompressTime: midTs - startTs,
TranportTime: mid2Ts - midTs,
DecompressTime: endTs - mid2Ts,
CompressRatio: float64(len(r.oBuf)) / float64(dataLen),
CompressRatio: float64(dataLen) / float64(len(r.oBuf)),
}
r.reportFunc(compressInfo)
r.start = 0
Expand Down

0 comments on commit 55d63f9

Please sign in to comment.