diff options
-rw-r--r-- | Duplicati/CommandLine/BackendTester/Program.cs | 4 |
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"))
|