Fix build on non-linux systems

This commit is contained in:
eleksir
2024-12-12 21:20:51 +03:00
parent 83970650b5
commit 62bbf9d277

View File

@@ -5,12 +5,12 @@ package lib
import proc "github.com/shirou/gopsutil/v3/process" import proc "github.com/shirou/gopsutil/v3/process"
func GetIOPriority(which int, who int) (prio uint32, err error) { func (cnf Config) GetIOPriority(which int, who int) (prio uint32, err error) {
return 0, NotImplementedError return 0, cnf.NotImplementedError
} }
func SetIOPriority(which int, who int, prio uint32) (err error) { func (cnf Config) SetIOPriority(which int, who int, prio uint32) (err error) {
return NotImplementedError return cnf.NotImplementedError
} }
func IORenice(cnf Config, p *proc.Process, processName string) {} func (cnf Config) IORenice(cnf Config, p *proc.Process, processName string) {}