Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ugly floats

  • Loading branch information...
commit 2c80e891c5ecbeebada5b20d316a724ecec8170d 1 parent b18fe81
Nick Kallen authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 util/in_process_lru_cache.rb
4 util/in_process_lru_cache.rb
@@ -5,14 +5,14 @@ def get(data)
5 5 data == key
6 6 end
7 7 if !cache_hit
8   - $stats.set('cache_hit', 0.0)
  8 + $stats.set('cache_hit', 0)
9 9
10 10 result = yield(data)
11 11 @cache.unshift([data, result])
12 12 @cache.slice!(2..-1)
13 13 result
14 14 else
15   - $stats.set('cache_hit', 1.0)
  15 + $stats.set('cache_hit', 1)
16 16
17 17 cache_hit[1]
18 18 end

0 comments on commit 2c80e89

Please sign in to comment.
Something went wrong with that request. Please try again.