Skip to content

Commit

Permalink
print Total BloomFilter Size with totalBloomFilter instead of totalIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuQhahah committed Jan 3, 2025
1 parent eba96a1 commit b5e2ca2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion badger/cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

Check failure on line 308 in badger/cmd/info.go

View workflow job for this annotation

GitHub Actions / lint

G115: integer overflow conversion uint64 -> int64 (gosec)
fmt.Printf("Mean Compression Ratio: %.2f\n", totalCompressionRatio/float64(len(tables)))
fmt.Println()
}
Expand Down

0 comments on commit b5e2ca2

Please sign in to comment.