Skip to content

Commit

Permalink
correct formatting strings
Browse files Browse the repository at this point in the history
  • Loading branch information
cherusk committed Apr 19, 2023
1 parent 27bebab commit 4cc661e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions breeder/linux_network_stack/root_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ async def gather_recon():
constraints = setting_config.get('constraints')
suggested_value = trial.suggest_int(setting_name, constraints.get('lower') , constraints.get('upper') )
if setting_name in ['net.ipv4.tcp_rmem', 'net.ipv4.tcp_wmem']:
settings.append("sudo sysctl -w {setting_name}='4096 131072 {suggested_value}';")
settings.append(f"sudo sysctl -w {setting_name}='4096 131072 {suggested_value}';")
else:
settings.append("sudo sysctl -w {setting_name}='{suggested_value}';")
settings.append(f"sudo sysctl -w {setting_name}='{suggested_value}';")

settings = '\n'.join(settings)

Expand Down

0 comments on commit 4cc661e

Please sign in to comment.