mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 11:44:45 -06:00
Fixed a divide by zero bug when the repository has only zero-byte files
This commit is contained in:
@@ -472,7 +472,7 @@ func (manager *BackupManager) Backup(top string, quickMode bool, threads int, ta
|
||||
|
||||
uploadedModifiedFileSize := atomic.AddInt64(&uploadedModifiedFileSize, int64(chunkSize))
|
||||
|
||||
if IsTracing() || showStatistics {
|
||||
if (IsTracing() || showStatistics) && totalModifiedFileSize > 0 {
|
||||
now := time.Now().Unix()
|
||||
if now <= startUploadingTime {
|
||||
now = startUploadingTime + 1
|
||||
|
||||
Reference in New Issue
Block a user