Skip to content

Commit

Permalink
hopefully fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Missy authored and Missy committed May 2, 2013
1 parent 2d08582 commit 236f873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squirrel/replay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def output(query, data, malformed=false)
end
end

def build_curl_command_string()
def build_curl_command_string(data)
base_uri = "#{@host}:#{@port}/#{data['index']}/_search/"
if @preference[0]
base_uri.concat(@preference[1])
Expand All @@ -170,7 +170,7 @@ def execute_query(query, data)
data['new_timestamp'] = Time.now
data['new_start_time'] = Time.now.to_f * 1000
#puts "curl -s -XGET #{Settings.host}:#{Settings.port}/#{data['index']}/_search/ -d '#{query}'"
build_curl_command_string
build_curl_command_string(data)
#curl_result = `curl -s -XGET '#{@host}:#{@port}/#{data['index']}/_search/' -d '#{query}'`
#data['new_end_time'] = Time.now.to_f * 1000
#data['new_duration'] = data['new_end_time'] - data['new_start_time']
Expand Down

0 comments on commit 236f873

Please sign in to comment.