Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Gill <tyler.gill@byu.net>2021-03-22 19:47:44 +0300
committerTyler Gill <tyler.gill@byu.net>2021-03-22 19:47:44 +0300
commita064d666031ca9464959346f60c80dd9c6ef8f1e (patch)
tree9870ba16127333bbb37d61bdce97c9422a24b1d6 /Duplicati/CommandLine
parent1ec1e18634c67dde0ed04cceda77f5c781d7fb6a (diff)
Parse throttle speeds in backend tester as sizes.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/BackendTester/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/CommandLine/BackendTester/Program.cs b/Duplicati/CommandLine/BackendTester/Program.cs
index c8ff8f0bb..a9318e5d1 100644
--- a/Duplicati/CommandLine/BackendTester/Program.cs
+++ b/Duplicati/CommandLine/BackendTester/Program.cs
@@ -233,7 +233,7 @@ namespace Duplicati.CommandLine.BackendTester
Console.WriteLine("Warning: Throttling is only supported in this tool on streaming backends");
}
- throttleUpload = long.Parse(throttleUploadString);
+ throttleUpload = Duplicati.Library.Utility.Sizeparser.ParseSize(throttleUploadString, "kb");
}
long throttleDownload = 0;
@@ -244,7 +244,7 @@ namespace Duplicati.CommandLine.BackendTester
Console.WriteLine("Warning: Throttling is only supported in this tool on streaming backends");
}
- throttleDownload = long.Parse(throttleDownloadString);
+ throttleDownload = Duplicati.Library.Utility.Sizeparser.ParseSize(throttleDownloadString, "kb");
}
if (options.ContainsKey("number-of-files"))