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:
Diffstat (limited to 'Duplicati/CommandLine/BackendTester/Program.cs')
-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"))