systemd / casync

Content-Addressable Data Synchronization Tool
1.5k stars 117 forks source link

Display percentage in casync extract summary #184

Closed elboulangero closed 5 years ago

elboulangero commented 5 years ago

This commit adds percentage to the output of casync extract, to easily see the distribution of incoming chunks among local store, local seed and remote store.

The new output looks like that:

$ casync extract -v test.caibx yop.img
Zero bytes written as sparse files: 7.3G
Bytes cloned through reflinks: 0B
Chunk requests fulfilled from local store: 127661 (100%)
Bytes used from local store: 13.9G (100%)
Chunk requests fulfilled from local seed: 0 (0%)
Bytes used from local seed: 0B (0%)
Chunk requests fulfilled from remote store: 0 (0%)
Bytes used from remote store: 0B (0%)

(see #180 for original discussion)