1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Merge pull request #170 from jt70471/patch-1

fix upload/download rate for copy described in issue #169
This commit is contained in:
gilbertchen
2017-09-11 08:16:03 -04:00
committed by GitHub

View File

@@ -1071,8 +1071,8 @@ func copySnapshots(context *cli.Context) {
"Enter destination storage password:",false, false)
}
sourceStorage.SetRateLimits(context.Int("download-rate-limit"), 0)
destinationStorage.SetRateLimits(0, context.Int("upload-rate-limit"))
sourceStorage.SetRateLimits(context.Int("download-limit-rate"), 0)
destinationStorage.SetRateLimits(0, context.Int("upload-limit-rate"))
destinationManager := duplicacy.CreateBackupManager(destination.SnapshotID, destinationStorage, repository,
destinationPassword)