Skip to content

Commit

Permalink
Limiter condition fixed (changed default)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maelkum committed Apr 25, 2024
1 parent d3cdae5 commit 8e13988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/node/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func run() int {
}

func needLimiter(cfg *config.Config) bool {
return cfg.Worker.CPUPercentageLimit != 1.0 || cfg.Worker.MemoryLimitKB > 0
return (cfg.Worker.CPUPercentageLimit > 0 && cfg.Worker.CPUPercentageLimit < 1.0) || cfg.Worker.MemoryLimitKB > 0
}

func updateDirPaths(root string, cfg *config.Config) {
Expand Down

0 comments on commit 8e13988

Please sign in to comment.