Skip to content

Commit

Permalink
fix on cpu count
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani committed Jan 22, 2025
1 parent 1ee86f6 commit b2c6560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion krkn/scenario_plugins/hogs/hogs_scenario_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_scenario_types(self) -> list[str]:
return ["hog_scenarios"]

def run_scenario_worker(self, config: HogConfig, lib_k8s: KrknKubernetes, node: str):
if config.type == HogType.cpu and not config.workers:
if not config.workers:
config.workers = lib_k8s.get_node_cpu_count(node)
logging.info(f"[{node}] detected {config.workers} cpus for node {node}")

Expand Down

0 comments on commit b2c6560

Please sign in to comment.