diff options
-rw-r--r-- | src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java b/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java index 4301adc..6661a27 100644 --- a/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java +++ b/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java @@ -95,11 +95,12 @@ public class IncCopyResult { @Override public String toString() { return String.format( - "File(s) added: %d (%s in size, totally %d files). Total backup-ed files size: %s", + "File(s) added: %d (%s in size, totally %d files). Total backup-ed files size: %s (%.2f%% reused)", filesCopied, BackupFilesystemUtil.getFriendlyFileSizeString(bytesCopied), totalFiles, - BackupFilesystemUtil.getFriendlyFileSizeString(bytesTotal) + BackupFilesystemUtil.getFriendlyFileSizeString(bytesTotal), + (1 - 1.0f * bytesCopied / bytesTotal) * 100 ); } } |