mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01:00
lib/logstorage: go fmt
This commit is contained in:
parent
d2ea59c444
commit
3c5623ce7f
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user