Fix build on non-linux systems
This commit is contained in:
@@ -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) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user