Skip to content
Snippets Groups Projects
Commit dc60a3c0 authored by juga's avatar juga
Browse files

fix: scanner: Log times kept

not only the times that are not kept.

Closes #40060
parent fa70b0a1
No related branches found
No related tags found
No related merge requests found
......@@ -466,14 +466,17 @@ def _should_keep_result(did_request_maximum, result_time, download_times):
# In the normal case, we didn't ask for the maximum allowed amount. So we
# should only allow ourselves to keep results that are between the min and
# max allowed time
msg = "Keeping measurement time {:.2f}".format(result_time)
if not did_request_maximum and \
result_time >= download_times['min'] and \
result_time < download_times['max']:
log.debug(msg)
return True
# If we did request the maximum amount, we should keep the result as long
# as it took less than the maximum amount of time
if did_request_maximum and \
result_time < download_times['max']:
log.debug(msg)
return True
# In all other cases, return false
log.debug('Not keeping result time %f.%s', result_time,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment