Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
dc60a3c0
Commit
dc60a3c0
authored
4 years ago
by
juga
Browse files
Options
Downloads
Patches
Plain Diff
fix: scanner: Log times kept
not only the times that are not kept. Closes #40060
parent
fa70b0a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/core/scanner.py
+3
-0
3 additions, 0 deletions
sbws/core/scanner.py
with
3 additions
and
0 deletions
sbws/core/scanner.py
+
3
−
0
View file @
dc60a3c0
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment