fix: process priority setting (#1852)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2025-01-23 14:56:49 +01:00
committed by GitHub
parent 608b83cfd8
commit 6b7201856c

View File

@@ -325,7 +325,7 @@ func setPriorityWindows(logger *slog.Logger, pid int, priority string) error {
winPriority, ok := priorityStringToInt[priority]
// Only set process priority if a non-default and valid value has been set
if !ok || winPriority != windows.NORMAL_PRIORITY_CLASS {
if !ok || winPriority == windows.NORMAL_PRIORITY_CLASS {
return nil
}