From 483d91a54912f2c87d6d686184f66a8d091ef9b7 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 23 Jan 2021 15:44:15 +0800 Subject: Now it will display information after restoring from an incremental backup --- .../keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java | 2 +- .../backup/incremental/manager/IncrementalBackupStorageManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/keuin/kbackupfabric/backup/incremental') 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 6011ea5..dbaf9bf 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,7 +95,7 @@ public class IncCopyResult { @Override public String toString() { return String.format( - "Files copied: %d (%s in size, totally %d files). Total file tree size: %s.", + "Files copied: %d (%s in size, totally %d files). Total file tree size: %s", filesCopied, BackupFilesystemUtil.getFriendlyFileSizeString(bytesCopied), totalFiles, diff --git a/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java b/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java index 78c6943..9060d88 100644 --- a/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java +++ b/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java @@ -58,7 +58,7 @@ public class IncrementalBackupStorageManager { } { // element exists (file reused). Just update the stat info - copyCount = copyCount.addWith(new IncCopyResult(1, 1, 0, fileBytes)); + copyCount = copyCount.addWith(new IncCopyResult(1, 0, 0, fileBytes)); } } -- cgit v1.2.3