[Groonga-commit] droonga/fluent-plugin-droonga at 504d7c8 [master] Apply limit correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Nov 27 20:18:06 JST 2013


YUKI Hiroshi	2013-11-27 20:18:06 +0900 (Wed, 27 Nov 2013)

  New Revision: 504d7c8cf0658c7a99896cb748298c9c4310d003
  https://github.com/droonga/fluent-plugin-droonga/commit/504d7c8cf0658c7a99896cb748298c9c4310d003

  Message:
    Apply limit correctly

  Modified files:
    lib/droonga/plugin/collector/basic.rb

  Modified: lib/droonga/plugin/collector/basic.rb (+1 -1)
===================================================================
--- lib/droonga/plugin/collector/basic.rb    2013-11-27 20:05:16 +0900 (8aa721c)
+++ lib/droonga/plugin/collector/basic.rb    2013-11-27 20:18:06 +0900 (94ebab2)
@@ -54,7 +54,7 @@ module Droonga
           reduced_values = reduced_values[deal["offset"]..-1]
         end
         if deal["limit"] && deal["limit"] != UNLIMITED
-          reduced_values = reduced_values[0..deal["limit"]]
+          reduced_values = reduced_values[0..deal["limit"]-1]
         end
 
         result[key] = reduced_values
-------------- next part --------------
HTML����������������������������...
Download 



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