mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Priority/JobProvider tweaks
This commit is contained in:
parent
77c82df482
commit
da27db7e03
@ -68,7 +68,7 @@ private static void FixPriorities()
|
|||||||
Process currentProcess = Process.GetCurrentProcess();
|
Process currentProcess = Process.GetCurrentProcess();
|
||||||
if (currentProcess.PriorityClass < ProcessPriorityClass.Normal)
|
if (currentProcess.PriorityClass < ProcessPriorityClass.Normal)
|
||||||
{
|
{
|
||||||
Logger.Info("Promoting process priority from {0} to {1}", currentProcess.PriorityClass,
|
Logger.Info("Promoting Nzbdrone.exe process priority from {0} to {1}", currentProcess.PriorityClass,
|
||||||
ProcessPriorityClass.Normal);
|
ProcessPriorityClass.Normal);
|
||||||
currentProcess.PriorityClass = ProcessPriorityClass.Normal;
|
currentProcess.PriorityClass = ProcessPriorityClass.Normal;
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ private static void FixPriorities()
|
|||||||
|
|
||||||
if (IISController.IISProcess!=null && IISController.IISProcess.PriorityClass < ProcessPriorityClass.Normal)
|
if (IISController.IISProcess!=null && IISController.IISProcess.PriorityClass < ProcessPriorityClass.Normal)
|
||||||
{
|
{
|
||||||
Logger.Info("Promoting process priority from {0} to {1}", IISController.IISProcess.PriorityClass,
|
Logger.Info("Promoting IISExpress process priority from {0} to {1}", IISController.IISProcess.PriorityClass,
|
||||||
ProcessPriorityClass.Normal);
|
ProcessPriorityClass.Normal);
|
||||||
IISController.IISProcess.PriorityClass = ProcessPriorityClass.Normal;
|
IISController.IISProcess.PriorityClass = ProcessPriorityClass.Normal;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user