Remove cmd_delay config option as it seems to be useless
This commit is contained in:
@@ -4,9 +4,6 @@ daemon: true
|
|||||||
# PID file for daemon.
|
# PID file for daemon.
|
||||||
pidfile: /var/run/reniced.pid
|
pidfile: /var/run/reniced.pid
|
||||||
|
|
||||||
# Delay between addition and execution of tasks to task pool, to lower cpu load peaks.
|
|
||||||
cmd_delay: 20
|
|
||||||
|
|
||||||
# Delay among iterations.
|
# Delay among iterations.
|
||||||
loop_delay: 5000
|
loop_delay: 5000
|
||||||
|
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -157,8 +157,6 @@ func reniced(cnf Config) {
|
|||||||
if !ok {
|
if !ok {
|
||||||
log.Printf("Unable to add task to pool")
|
log.Printf("Unable to add task to pool")
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(time.Millisecond * time.Duration(cnf.CmdDelay))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(time.Millisecond * time.Duration(cnf.LoopDelay))
|
time.Sleep(time.Millisecond * time.Duration(cnf.LoopDelay))
|
||||||
|
|||||||
3
types.go
3
types.go
@@ -10,9 +10,6 @@ type Config struct {
|
|||||||
// LoopDelay in milliseconds - whole set of action delay period.
|
// LoopDelay in milliseconds - whole set of action delay period.
|
||||||
LoopDelay int `yaml:"loop_delay,omitempty"`
|
LoopDelay int `yaml:"loop_delay,omitempty"`
|
||||||
|
|
||||||
// CmdDelay in milliseconds - delay between each change application.
|
|
||||||
CmdDelay int `yaml:"cmd_delay,omitempty"`
|
|
||||||
|
|
||||||
// Whether to print debug info on stdout.
|
// Whether to print debug info on stdout.
|
||||||
Debug bool `yaml:"debug,omitempty"`
|
Debug bool `yaml:"debug,omitempty"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user