From 55d63f92e5d4724f67012e6382a6582dc9958171 Mon Sep 17 00:00:00 2001 From: Wang Qian <1498953301@qq.com> Date: Mon, 30 Oct 2023 15:28:17 +0800 Subject: [PATCH] fix(adaptive):fix compressratio bug. --- adaptive/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adaptive/reader.go b/adaptive/reader.go index f02b81b..18c3083 100644 --- a/adaptive/reader.go +++ b/adaptive/reader.go @@ -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