Skip to content

Commit

Permalink
convert priority value to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Aug 7, 2024
1 parent cff446b commit 1df3711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"os/signal"
"path/filepath"
"runtime"
"strings"
"syscall"
"text/tabwriter"

Expand Down Expand Up @@ -308,7 +309,7 @@ func setPriority(nice int, class string) error {
var err error

if class != "" {
if classID, ok := constants.PriorityValues[class]; ok {
if classID, ok := constants.PriorityValues[strings.ToLower(class)]; ok {
err = priority.SetClass(classID)
if err != nil {
return err
Expand Down

0 comments on commit 1df3711

Please sign in to comment.