Only print rsync stats if some data was transferred

This commit is contained in:
Kovid Goyal
2021-11-17 11:18:31 +05:30
parent 005ab58b15
commit dc2bac0068
2 changed files with 5 additions and 3 deletions

View File

@@ -640,5 +640,5 @@ def receive_main(cli_opts: TransferCLIOptions, args: List[str]) -> None:
tsf += f.expected_size
dsz += f.received_bytes
ssz += f.sent_bytes
if tsf:
if tsf and dsz + ssz:
print_rsync_stats(tsf, dsz, ssz)