From ed33cd59b758a519d0e057613dee0ccd5128b7d5 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 12 Mar 2015 09:53:58 +0000 Subject: [PATCH] show hit rate to 2dp only --- services/spelling/app/coffee/ASpell.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/spelling/app/coffee/ASpell.coffee b/services/spelling/app/coffee/ASpell.coffee index 9b051c6390..92437ebecf 100644 --- a/services/spelling/app/coffee/ASpell.coffee +++ b/services/spelling/app/coffee/ASpell.coffee @@ -38,7 +38,7 @@ class ASpellRunner for k, v of addToCache cache.set(k, v) - logger.log hits: hits, total: words.length, hitrate: hits/words.length, "cache hit rate" + logger.log hits: hits, total: words.length, hitrate: (hits/words.length).toFixed(2), "cache hit rate" callback null, results getSuggestions: (language, output) ->