Skip to content

Commit 1cd86e8

Browse files
committed
Fix percent value in PrintStats()
1 parent 608353f commit 1cd86e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lru.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,6 @@ func (lru *LRU[K, V]) dump() {
495495
func (lru *LRU[K, V]) PrintStats() {
496496
fmt.Printf("Inserts: %d Collisions: %d (%.2f%%) Evictions: %d Removals: %d\n",
497497
lru.inserts, lru.collisions,
498-
float64(lru.collisions)/float64(lru.inserts),
498+
float64(lru.collisions)/float64(lru.inserts)*100,
499499
lru.evictions, lru.removals)
500500
}

0 commit comments

Comments
 (0)