Permalink
Browse files

should run now

  • Loading branch information...
1 parent aebfd12 commit 1106cc483ae18036c77cf8b6a3cb44214dce9482 Missy committed May 2, 2013
Showing with 6 additions and 7 deletions.
  1. +6 −7 squirrel/replay.rb
View
13 squirrel/replay.rb
@@ -172,15 +172,14 @@ def execute_query(query, data)
data['new_start_time'] = Time.now.to_f * 1000
#puts "curl -s -XGET #{Settings.host}:#{Settings.port}/#{data['index']}/_search/ -d '#{query}'"
cmd = build_curl_command_string(query, data)
- puts cmd
+ #puts cmd
curl_result = `#{cmd}`
- puts curl_result
#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']
- #data['original_dur'] = data['took']
- #data = data.merge(JSON.parse(curl_result))
- #output(query, data)
+ data['new_end_time'] = Time.now.to_f * 1000
+ data['new_duration'] = data['new_end_time'] - data['new_start_time']
+ data['original_dur'] = data['took']
+ data = data.merge(JSON.parse(curl_result))
+ output(query, data)
else
puts "error don't know search type, please throw an exception here"
end

0 comments on commit 1106cc4

Please sign in to comment.