#2869 - Make periodic agent timing check stricter

This commit is contained in:
Marek Wolan
2025-01-14 09:05:13 +00:00
parent 23736f7738
commit a447c5f43c

View File

@@ -59,7 +59,7 @@ class PeriodicAgent(AbstractScriptedAgent, identifier="PeriodicAgent"):
If variance were greater than frequency, sometimes the bracketed term would be negative
and the attack would never happen again.
"""
if self.variance > self.frequency:
if self.variance >= self.frequency:
raise ValueError(
f"Agent start settings error: variance must be lower than frequency "
f"{self.variance=}, {self.frequency=}"