Skip to content

Commit

Permalink
Store status as a string correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jul 30, 2014
1 parent 68b2f63 commit c7b0c33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/drnbench/client/http.rb
Expand Up @@ -63,7 +63,7 @@ def stop
if @last_request
@result << {
:request => @last_request,
:status => 0,
:status => "0",
:elapsed_time => Time.now - @last_start_time,
}
end
Expand Down
2 changes: 1 addition & 1 deletion lib/drnbench/request-response/result.rb
Expand Up @@ -82,7 +82,7 @@ def average_elapsed_time
def top_slow_requests
slow_requests[0..@n_slow_requests-1].collect do |result|
request = result[:request]
status = result[:status]
status = result[:status].to_i
if result[:status].zero?
status = "#{status}(aborted)"
end
Expand Down

0 comments on commit c7b0c33

Please sign in to comment.