From b5e2ca2e5a93b5c0f6e8d83b662f77ea8cf24508 Mon Sep 17 00:00:00 2001 From: qiang_liu Date: Fri, 3 Jan 2025 17:38:40 +0800 Subject: [PATCH] print Total BloomFilter Size with totalBloomFilter instead of totalIndex --- 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() }