Skip to content

Commit

Permalink
bugfix 如果一分钟内某个(total)time字段值小于1, 则会被int转换为0
Browse files Browse the repository at this point in the history
  • Loading branch information
ljk committed Apr 27, 2018
1 parent c6df844 commit d777972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions log_analyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def final_uri_dicts(main_stage, log_name, this_h_m):
'q2_time': round(uri_quartile_time[2], 3),
'q3_time': round(uri_quartile_time[3], 3),
'max_time': uri_quartile_time[-1],
'time': int(sum(uri_v['time'])),
'time': round(sum(uri_v['time']), 3),
'q2_bytes': int(uri_quartile_bytes[2]),
'q3_bytes': int(uri_quartile_bytes[3]),
'max_bytes': uri_quartile_bytes[-1],
Expand All @@ -194,7 +194,7 @@ def final_uri_dicts(main_stage, log_name, this_h_m):
'q2_time': round(arg_quartile_time[2], 3),
'q3_time': round(arg_quartile_time[3], 3),
'max_time': arg_quartile_time[-1],
'time': int(sum(arg_v['time'])),
'time': round(sum(arg_v['time']), 3),
'q2_bytes': int(arg_quartile_bytes[2]),
'q3_bytes': int(arg_quartile_bytes[3]),
'max_bytes': arg_quartile_bytes[-1],
Expand All @@ -210,7 +210,7 @@ def final_uri_dicts(main_stage, log_name, this_h_m):
'q2_time': round(error_quartile_time[2], 3),
'q3_time': round(error_quartile_time[3], 3),
'max_time': error_quartile_time[-1],
'time': int(sum(error_v['time'])),
'time': round(sum(error_v['time']), 3),
'q2_bytes': int(error_quartile_bytes[2]),
'q3_bytes': int(error_quartile_bytes[3]),
'max_bytes': error_quartile_bytes[-1],
Expand Down

0 comments on commit d777972

Please sign in to comment.