Compare commits

...

2 Commits

2 changed files with 6 additions and 6 deletions

View File

@@ -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) {}

View File

@@ -80,7 +80,7 @@ func (cnf *Config) readConfFile(path string) error {
}
if cnf.MaxWorkers == 0 {
cnf.MaxWorkers = 5
cnf.MaxWorkers = runtime.NumCPU()
log.Printf("max_workers set to %d", cnf.MaxWorkers)
}