Skip to content

Commit

Permalink
BugFix: fixed malformed success message of incremental backup.
Browse files Browse the repository at this point in the history
  • Loading branch information
keuin committed Jan 26, 2021
1 parent 08ac6aa commit a3b22bf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ run/
logs/

# testfile
testfile/ConfiguredIncrementalBackupMethodTest
testfile/ConfiguredIncrementalBackupMethodTest
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.6.1
mod_version=1.6.2
maven_group=com.keuin.kbackupfabric
archives_base_name=kbackup-fabric
# Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public int hashCode() {
@Override
public String toString() {
return String.format(
"Files copied: %d (%s in size, totally %d files). Total file tree size: %s",
"File(s) added: %d (%s in size, totally %d files). Total backup-ed files size: %s",
filesCopied,
BackupFilesystemUtil.getFriendlyFileSizeString(bytesCopied),
totalFiles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public IncCopyResult getCopyResult() {
@Override
public String getFeedback() {
if (success && copyResult != null)
return String.format("File(s) added: %s.", copyResult);
return copyResult.toString();
else
return "Backup failed.";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public long getBackupSizeBytes() {
@Override
public String getFeedback() {
if (success && backupSizeBytes >= 0)
return String.format("File size: %s.", getFriendlyFileSizeString(backupSizeBytes));
return String.format("Backup file size: %s.", getFriendlyFileSizeString(backupSizeBytes));
else
return "";
}
Expand Down

0 comments on commit a3b22bf

Please sign in to comment.