Skip to content

Commit

Permalink
Merge "Add explicit info for immeasurable throughput"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Apr 26, 2017
2 parents b526576 + a60186a commit ea1b479
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/test_pyeclib_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ def time_encode(self, num_data, num_parity, ec_type, hd,
:return average encode time
"""
timer = Timer()
tsum = 0
handle = pyeclib_c.init(num_data, num_parity, ec_type, hd)
whole_file_bytes = self.get_tmp_file(file_size).read()

Expand Down Expand Up @@ -291,7 +290,7 @@ def get_throughput(self, avg_time, size_str):
size = float(size_desc[0])

if avg_time == 0:
return '?'
return '? (test finished too fast to calculate throughput)'

if size_desc[1] == 'M':
throughput = size / avg_time
Expand Down

0 comments on commit ea1b479

Please sign in to comment.