Skip to content

Commit 1cd86e8

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lru.go

+1-1
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)