Skip to content

Commit

Permalink
fix: process priority setting (#1852)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke authored Jan 23, 2025
1 parent 608b83c commit 6b72018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/windows_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6b72018

Please sign in to comment.