summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/kbackupfabric/backup/incremental/manager
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-23 15:44:15 +0800
committerkeuin <[email protected]>2021-01-23 15:44:15 +0800
commit483d91a54912f2c87d6d686184f66a8d091ef9b7 (patch)
treeea1cda511c69bb5efbf938d69060561d7a3d738b /src/main/java/com/keuin/kbackupfabric/backup/incremental/manager
parent4a1d885afa7217b47d6183488c3dc6537cef05b6 (diff)
Now it will display information after restoring from an incremental backup
Diffstat (limited to 'src/main/java/com/keuin/kbackupfabric/backup/incremental/manager')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncCopyResult.java2
-rw-r--r--src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java2
2 files changed, 2 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 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));
}
}