Navigation Menu

Skip to content

Commit

Permalink
Fix wrong plural form
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 17, 2015
1 parent 95b9c09 commit 2dd3158
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/droonga/plugins/dump.rb
Expand Up @@ -39,11 +39,11 @@ module Dump
class Request < AsyncCommand::Request
DEFAULT_MESSAGES_PER_SECOND = 10000

def messages_per_seconds
def messages_per_second
request = (@message.request || {})
minimum_messages_per_seconds = 10
minimum_messages_per_second = 10
[
minimum_messages_per_seconds,
minimum_messages_per_second,
(request["messagesPerSecond"] || DEFAULT_MESSAGES_PER_SECOND).to_i,
].max
end
Expand Down Expand Up @@ -309,7 +309,7 @@ def each_index_columns
def setup_forward_data
super
@n_forwarded_messages = 0
@messages_per_100msec = @request.messages_per_seconds / 10
@messages_per_100msec = @request.messages_per_second / 10
end

def forward(type, body=nil)
Expand Down

0 comments on commit 2dd3158

Please sign in to comment.