3 Commits

Author SHA1 Message Date
eleksir
7474028b82 Remove validation of unused cmd_delay parameter 2024-05-06 23:25:34 +03:00
eleksir
120b7c995a Update config for golangci-lint 2024-05-06 23:23:15 +03:00
eleksir
301c22be02 Fix typo in README.md 2024-05-06 23:03:03 +03:00
3 changed files with 4 additions and 8 deletions

View File

@@ -1,10 +1,11 @@
run: run:
tests: false tests: false
skip-dirs:
- vendor
modules-download-mode: readonly modules-download-mode: readonly
allow-parallel-runners: true allow-parallel-runners: true
go: '1.21' go: '1.21'
issues:
skip-dirs:
- vendor
output: output:
sort-results: true sort-results: true
linters: linters:

View File

@@ -85,7 +85,7 @@ RealTime prio is not available for regular users but for root only.
The only working official method for Apple OS is via taskpolicy utility that comes with Mac OS itself. (Unlimited kernel The only working official method for Apple OS is via taskpolicy utility that comes with Mac OS itself. (Unlimited kernel
API calls requires that calling binary being signed by Apple Inc itself) In context of this program such method is API calls requires that calling binary being signed by Apple Inc itself) In context of this program such method is
inefficient and beacuse of that mostly likely io task policy for mac os will not be implemented. inefficient and beacuse of that mostly likely io task policy for Mac OS will not be implemented.
## *BSD porting help needed :) ## *BSD porting help needed :)

View File

@@ -69,11 +69,6 @@ func readConfFile(path string) (Config, error) {
return Config{}, err return Config{}, err
} }
if cfg.CmdDelay == 0 {
cfg.CmdDelay = 20
log.Printf("cmd_delay can not be 0, setting to %d milliseconds", cfg.CmdDelay)
}
if cfg.LoopDelay == 0 { if cfg.LoopDelay == 0 {
cfg.LoopDelay = 2000 cfg.LoopDelay = 2000
log.Printf("loop_delay set to %d milliseconds", cfg.LoopDelay) log.Printf("loop_delay set to %d milliseconds", cfg.LoopDelay)