print "Network RTT:", rtt
print "Additional response delay:", start - rtt
print "Transfer time:", end - start
- print "Bandwidth:", data / (end - start)
+ if end - start > 0:
+ print "Bandwidth:", data / (end - start)
print
- logfile.write("%d\t%d\t%d\t%f\t%f\t%f\n"
+ logfile.write("%d\t%d\t%d\t%f\t%f\t%f\t# %s\n"
% (self.id, self.transfer_count, data,
- rtt, start - rtt, end - start))
+ rtt, start - rtt, end - start, self.endpoints))
self.transfer_count += 1
self.times = []
self.state = STATE_START