done = done + len(junk)
# sys.stdout.write('#')
# sys.stdout.flush()
- sys.stdout.write("\r%s %.3f GB (%.3f MB/s) " % (term['green'], (1.0 * done) / (1024 ** 3), (done / (1024 ** 2 *(time.time() - startt)))))
- sys.stdout.flush()
+ if done != len(junk):
+ sys.stdout.write(" \r%s %.3f GB (%.3f MB/s)" % (term['green'], (1.0 * done) / (1024 ** 3), (done / (1024 ** 2 *(time.time() - startt)))))
+ sys.stdout.flush()
remotefile.write(junk)
digest.update(junk)
junk = gpg.stdout.read(BUFFER)