From 3b135df4c15f96e8e0d9ed94dc598a29e38d6f58 Mon Sep 17 00:00:00 2001 From: Jason Dove Date: Fri, 20 Jan 2023 06:05:39 -0600 Subject: [PATCH] scan with below-normal priority when unforced (#1123) --- CHANGELOG.md | 2 +- ErsatzTV.Scanner/Worker.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2d7a322c..e55ee19c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Always use software pipeline for error display - This ensures errors will display even when hardware acceleration is misconfigured - Call scanner process only when scanning is required based on library refresh interval -- Use idle priority for scanner process with unforced (automatic) library scans +- Use lower process priority for scanner process with unforced (automatic) library scans ## [0.7.2-beta] - 2023-01-05 ### Fixed diff --git a/ErsatzTV.Scanner/Worker.cs b/ErsatzTV.Scanner/Worker.cs index 13355a532..4f5cd0bf2 100644 --- a/ErsatzTV.Scanner/Worker.cs +++ b/ErsatzTV.Scanner/Worker.cs @@ -181,7 +181,7 @@ public class Worker : BackgroundService try { using var process = Process.GetCurrentProcess(); - process.PriorityClass = ProcessPriorityClass.Idle; + process.PriorityClass = ProcessPriorityClass.BelowNormal; } catch (Exception ex) {