fix build_duration_func() (#2533)

for extractors with request_interval_min > 0
This commit is contained in:
Mike Fährmann
2022-04-27 20:28:14 +02:00
parent afde76269c
commit ca3a364db7
2 changed files with 8 additions and 2 deletions

View File

@@ -461,6 +461,8 @@ def compile_expression(expr, name="<expr>", globals=GLOBALS):
def build_duration_func(duration, min=0.0):
if not duration:
if min:
return lambda: min
return None
if isinstance(duration, str):