summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-01-24 20:10:58 +0800
committerkeuin <[email protected]>2021-01-24 20:12:32 +0800
commit3648d0ca94c9954fa7c4797ce64a0f42a4f837b5 (patch)
tree5695765f92bb6eeca4ab8bde36f6485dc722fb60
parentcc2b5aac3a99dd45b55a701efd4b6c206a21b237 (diff)
BugFix: incremental backup shows incorrect file count and size.
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/com/keuin/kbackupfabric/backup/incremental/manager/IncrementalBackupStorageManager.java3
2 files changed, 2 insertions, 3 deletions
diff --git a/gradle.properties b/gradle.properties
index 5ef3cf0..d69e734 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -6,7 +6,7 @@ minecraft_version=1.14.4
yarn_mappings=1.14.4+build.18
loader_version=0.11.0
# Mod Properties
-mod_version=1.5.0
+mod_version=1.5.1
maven_group=com.keuin.kbackupfabric
archives_base_name=kbackup-fabric
# Dependencies
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 9060d88..be01966 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
@@ -55,8 +55,7 @@ public class IncrementalBackupStorageManager {
// element does not exist. copy.
Files.copy(copySourceFile.toPath(), copyDestination.toPath());
copyCount = copyCount.addWith(new IncCopyResult(1, 1, fileBytes, fileBytes));
- }
- {
+ } else {
// element exists (file reused). Just update the stat info
copyCount = copyCount.addWith(new IncCopyResult(1, 0, 0, fileBytes));
}