diff --git a/EasyBackup/Models/FolderFileCopyProgress.cs b/EasyBackup/Models/FolderFileCopyProgress.cs index 8208979..2f83471 100644 --- a/EasyBackup/Models/FolderFileCopyProgress.cs +++ b/EasyBackup/Models/FolderFileCopyProgress.cs @@ -81,17 +81,20 @@ public string UserReadableBytesToCopy public double Progress { - get { return (double)BytesCopied / (double)TotalBytesToCopy * 100; } + get + { + if (TotalBytesToCopy == 0) + { + return 0; + } + return (double)BytesCopied / (double)TotalBytesToCopy * 100; + } } public string ProgressString { get { - if (double.IsNaN(Progress)) - { - return "0.00"; - } return string.Format("{0:N2}", Progress); } } diff --git a/README.md b/README.md index 945b0e8..03cad2d 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Features include: * The most recently used backup template file is automatically loaded for you when starting the software. A backup is only a few clicks away! * If copying a directory non-recursively, choose to only copy the last modified file in that directory. This could be useful when backing up a directory that contains local file backups, for example -- you may not need all the local backups, just the latest one. * View backup progress as it happens +* Optional sounds when backup succeeds or fails * Cancel backup at any time ## Screenshots