mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
lib/logstorage: go fmt
This commit is contained in:
parent
d2ea59c444
commit
3c5623ce7f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ func TestInmemoryPartMustInitFromRows(t *testing.T) {
|
||||||
func checkCompressionRate(t *testing.T, ph *partHeader, compressionRateExpected float64) {
|
func checkCompressionRate(t *testing.T, ph *partHeader, compressionRateExpected float64) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
compressionRate := float64(ph.UncompressedSizeBytes) / float64(ph.CompressedSizeBytes)
|
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)
|
t.Fatalf("unexpected compression rate; got %.1f; want %.1f", compressionRate, compressionRateExpected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue