Skip to content

Commit

Permalink
Sniffer wait time (#182)
Browse files Browse the repository at this point in the history
* Added sniffer_wait_time to 5s in settings.py

* Set sniffer_wait_time from settings in caracal.py
  • Loading branch information
Elenetta17 authored and SaiedKazemi committed Aug 5, 2024
1 parent b5cdcab commit 49dad98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions iris/agent/backend/caracal.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async def probe(
"caracal",
f"--meta-round {shlex.quote(str(round_number))}",
f"--probing-rate {shlex.quote(str(measurement_probing_rate))}",
f"--sniffer-wait-time {settings.AGENT_CARACAL_SNIFFER_WAIT_TIME}",
]

if batch_size:
Expand Down
3 changes: 2 additions & 1 deletion iris/agent/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class AgentSettings(CommonSettings):

AGENT_CARACAL_EXCLUDE_PATH: Path = Path("statics/excluded_prefixes")
AGENT_CARACAL_INTEGRITY_CHECK: bool = True

AGENT_CARACAL_SNIFFER_WAIT_TIME: int = 5

AGENT_UUID: str = str(uuid4())
AGENT_UUID_FILE: Path | None = None
AGENT_MAX_PROBING_RATE: int = 1000 # pps
Expand Down

0 comments on commit 49dad98

Please sign in to comment.