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:
authorAchim Schaefer <achim_schaefer@gmx.de>2020-11-05 17:49:48 +0300
committerAchim Schaefer <achim_schaefer@gmx.de>2020-11-05 17:49:48 +0300
commit5fa8e58f8d1dfa60fea74dbfc48632163d39d4ae (patch)
tree4137969b8846823e943c902c2c8d18e234e32721 /Duplicati/Library
parentb6e16189476648c7d260fb8ade9cc63599c9fa68 (diff)
Bugfix issue #3920
only "best-effort" and "realtime" allow a priotity level "none" and "idle" have no prioity level
Diffstat (limited to 'Duplicati/Library')
-rwxr-xr-xDuplicati/Library/Main/ProcessController.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Duplicati/Library/Main/ProcessController.cs b/Duplicati/Library/Main/ProcessController.cs
index cda5f0866..c3f301913 100755
--- a/Duplicati/Library/Main/ProcessController.cs
+++ b/Duplicati/Library/Main/ProcessController.cs
@@ -208,12 +208,14 @@ namespace Duplicati.Library.Main
if (string.Equals(ioclass, "idle", StringComparison.OrdinalIgnoreCase))
{
m_originalNiceClass = 3;
+ // Only allowed for "best-effort" and "realtime"
m_originalNiceLevel = -1;
}
else if (string.Equals(ioclass, "none", StringComparison.OrdinalIgnoreCase))
{
m_originalNiceClass = 0;
- m_originalNiceLevel = int.Parse(results.Last());
+ // Only allowed for "best-effort" and "realtime"
+ m_originalNiceLevel = -1;
}
else if (string.Equals(ioclass, "best-effort", StringComparison.OrdinalIgnoreCase))
{