diff --git a/internal/lib/ionice_other.go b/internal/lib/ionice_other.go index 29a61d0..6e759f7 100644 --- a/internal/lib/ionice_other.go +++ b/internal/lib/ionice_other.go @@ -5,12 +5,12 @@ package lib import proc "github.com/shirou/gopsutil/v3/process" -func GetIOPriority(which int, who int) (prio uint32, err error) { - return 0, NotImplementedError +func (cnf Config) GetIOPriority(which int, who int) (prio uint32, err error) { + return 0, cnf.NotImplementedError } -func SetIOPriority(which int, who int, prio uint32) (err error) { - return NotImplementedError +func (cnf Config) SetIOPriority(which int, who int, prio uint32) (err error) { + return cnf.NotImplementedError } -func IORenice(cnf Config, p *proc.Process, processName string) {} +func (cnf Config) IORenice(cnf Config, p *proc.Process, processName string) {}