Commit 890d2833 authored by Shane Hathaway's avatar Shane Hathaway

Corrected RAM cache cleanup.

parent 8aebfd08
......@@ -268,9 +268,8 @@ class RAMCache (Cache):
priorities = counters.items()
# Remove the least accessed entries until we've reached
# our target count.
if len(priortities) > 0:
if len(priorities) > 0:
priorities.sort()
priorities.reverse()
access_count = 0
for access_count, effect in priorities:
new_count = new_count - effect
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment