From 6f5ff28c693f567ea31f12b42375a280e5bdbb9b Mon Sep 17 00:00:00 2001 From: Qiang-Liu Date: Sat, 4 Jan 2025 11:45:32 +0800 Subject: [PATCH] fix(info): print Total BloomFilter Size with totalBloomFilter instead of totalIndex (#2145) --- badger/cmd/info.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badger/cmd/info.go b/badger/cmd/info.go index c8878ff73..adae93b26 100644 --- a/badger/cmd/info.go +++ b/badger/cmd/info.go @@ -305,7 +305,7 @@ func tableInfo(dir, valueDir string, db *badger.DB) { } fmt.Println() fmt.Printf("Total Index Size: %s\n", hbytes(int64(totalIndex))) - fmt.Printf("Total BloomFilter Size: %s\n", hbytes(int64(totalIndex))) + fmt.Printf("Total BloomFilter Size: %s\n", hbytes(int64(totalBloomFilter))) fmt.Printf("Mean Compression Ratio: %.2f\n", totalCompressionRatio/float64(len(tables))) fmt.Println() }