summaryrefslogtreecommitdiff
path: root/tftpy/TftpClient.py
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2009-08-18 22:27:18 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2009-08-18 22:27:18 -0400
commit3ae3b31bf40bcf39e129b4b079f1b131d5bed921 (patch)
tree8669d63c44fd92aec57359fe5fea6964ea547bbf /tftpy/TftpClient.py
parenta6a18c178b4b60d49baa42c55fb7948d955de263 (diff)
downloadtftpy-3ae3b31bf40bcf39e129b4b079f1b131d5bed921.tar.gz
Fixed server metrics summary.
Diffstat (limited to 'tftpy/TftpClient.py')
-rw-r--r--tftpy/TftpClient.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/tftpy/TftpClient.py b/tftpy/TftpClient.py
index aacdb2a..78a4627 100644
--- a/tftpy/TftpClient.py
+++ b/tftpy/TftpClient.py
@@ -53,14 +53,13 @@ class TftpClient(TftpSession):
metrics = self.context.metrics
- # FIXME: Should we output this? Shouldn't we let the client control
- # output? This should be in the sample client, but not in the download
- # call.
+ log.info('')
+ log.info("Download complete.")
if metrics.duration == 0:
log.info("Duration too short, rate undetermined")
else:
- log.info('')
log.info("Downloaded %.2f bytes in %.2f seconds" % (metrics.bytes, metrics.duration))
+ log.info("%.2f bytes in resent data" % metrics.resend_bytes)
log.info("Average rate: %.2f kbps" % metrics.kbps)
log.info("Received %d duplicate packets" % metrics.dupcount)
@@ -81,13 +80,12 @@ class TftpClient(TftpSession):
metrics = self.context.metrics
- # FIXME: Should we output this? Shouldn't we let the client control
- # output? This should be in the sample client, but not in the download
- # call.
+ log.info('')
+ log.info("Upload complete.")
if metrics.duration == 0:
log.info("Duration too short, rate undetermined")
else:
- log.info('')
- log.info("Downloaded %.2f bytes in %.2f seconds" % (metrics.bytes, metrics.duration))
+ log.info("Uploaded %.2f bytes in %.2f seconds" % (metrics.bytes, metrics.duration))
+ log.info("%.2f bytes in resent data" % metrics.resend_bytes)
log.info("Average rate: %.2f kbps" % metrics.kbps)
- log.info("Received %d duplicate packets" % metrics.dupcount)
+ log.info("Resent %d packets" % metrics.dupcount)