lib/logstorage: go fmt

This commit is contained in:
Aliaksandr Valialkin 2023-07-04 14:13:14 -07:00
parent d2ea59c444
commit 3c5623ce7f
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -93,7 +93,7 @@ func TestInmemoryPartMustInitFromRows(t *testing.T) {
func checkCompressionRate(t *testing.T, ph *partHeader, compressionRateExpected float64) {
t.Helper()
compressionRate := float64(ph.UncompressedSizeBytes) / float64(ph.CompressedSizeBytes)
if math.Abs(compressionRate-compressionRateExpected) > math.Abs(compressionRate+compressionRateExpected) * 0.05 {
if math.Abs(compressionRate-compressionRateExpected) > math.Abs(compressionRate+compressionRateExpected)*0.05 {
t.Fatalf("unexpected compression rate; got %.1f; want %.1f", compressionRate, compressionRateExpected)
}
}