From 3c5623ce7f918b46627dd0740ccdfd97375cfe31 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 4 Jul 2023 14:13:14 -0700 Subject: [PATCH] lib/logstorage: go fmt --- lib/logstorage/inmemory_part_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logstorage/inmemory_part_test.go b/lib/logstorage/inmemory_part_test.go index 0f4fc1147..8bf59eeb5 100644 --- a/lib/logstorage/inmemory_part_test.go +++ b/lib/logstorage/inmemory_part_test.go @@ -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) } }