X-Git-Url: https://git.siccegge.de//index.cgi?p=tools.git;a=blobdiff_plain;f=backup-zfs;h=9d52e0635cf82b37fa3f9a28f5142a4ebbf59e8a;hp=c060712c3f1bcbe284ecad49128efcf20dfc7169;hb=c4e66206d0cd9ab1c152d99fe1d5c91cb9c88868;hpb=59006d84363030b7473c9bc11833ce9e12136b59 diff --git a/backup-zfs b/backup-zfs index c060712..9d52e06 100755 --- a/backup-zfs +++ b/backup-zfs @@ -121,8 +121,9 @@ def sftp_send(dataset, reference=None): 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)