- rate = float(line.split(u" ")[3])
- elif u"Transfer Rate:" in line:
- bandwidth = float(line.split(u" ")[2]) * 8000
- elif u"Latency:" in line:
- latency = float(line.split(u" ")[1])
- elif u"Completed requests:" in line:
- completed_requests = int(line.split(u" ")[2])
- elif u"Failed requests" in line:
- failed_requests = int(line.split(u" ")[2])
+ rate = float(line.split(" ")[3])
+ elif "Transfer Rate:" in line:
+ bandwidth = float(line.split(" ")[2]) * 8000
+ elif "Latency:" in line:
+ latency = float(line.split(" ")[1])
+ elif "Completed requests:" in line:
+ completed_requests = int(line.split(" ")[2])
+ elif "Failed requests" in line:
+ failed_requests = int(line.split(" ")[2])