Bugfix issue #3920
only "best-effort" and "realtime" allow a priotity level "none" and "idle" have no prioity level
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user