[Groonga-commit] groonga/groonga-query-log at 4083783 [master] Fix how to compare cache hit rate.

Back to archive index

HorimotoYasuhiro null+****@clear*****
Tue May 2 11:34:34 JST 2017


HorimotoYasuhiro	2017-05-02 11:34:34 +0900 (Tue, 02 May 2017)

  New Revision: 4083783202598cad08943c9375580d6a1d727299
  https://github.com/groonga/groonga-query-log/commit/4083783202598cad08943c9375580d6a1d727299

  Merged b111384: Merge pull request #13 from komainu8/feature/fix_compare_cache_hit_rate

  Message:
    Fix how to compare cache hit rate.

  Modified files:
    lib/groonga/query-log/response-comparer.rb

  Modified: lib/groonga/query-log/response-comparer.rb (+1 -1)
===================================================================
--- lib/groonga/query-log/response-comparer.rb    2017-04-27 17:03:20 +0900 (4682c23)
+++ lib/groonga/query-log/response-comparer.rb    2017-05-02 11:34:34 +0900 (291dbf4)
@@ -76,7 +76,7 @@ module Groonga
       def same_cache_hit_rate?
         cache_hit_rate1 =****@respo*****["cache_hit_rate"]
         cache_hit_rate2 =****@respo*****["cache_hit_rate"]
-        (cache_hit_rate1 - cache_hit_rate2).abs <= (Float::EPSILON * 10)
+        (cache_hit_rate1 - cache_hit_rate2).abs < (10 ** -13)
       end
 
       def care_order?
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index