Skip to content

Commit

Permalink
Merge pull request #23 from quosa/csv_export_fix
Browse files Browse the repository at this point in the history
Fixed column order (didn't match the order of the column headlines) in CSV stats export
  • Loading branch information
heyman committed Apr 16, 2012
2 parents 8191cf9 + d3467cb commit 23907eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ def request_stats_csv():
s.median_response_time,
s.avg_response_time,
s.min_response_time or 0,
s.avg_content_length,
s.max_response_time,
s.avg_content_length,
s.total_rps,
))

Expand Down Expand Up @@ -181,7 +181,7 @@ def request_stats():

# since generating a total response times dict with all response times from all
# urls is slow, we make a new total response time dict which will consist of one
# entry per url with the median response time as key and the numbe fo requests as
# entry per url with the median response time as key and the number of requests as
# value
response_times = defaultdict(int) # used for calculating total median
for i in xrange(len(stats)-1):
Expand Down

0 comments on commit 23907eb

Please sign in to comment.