Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Network Health
sbws
Commits
754469b4
Verified
Commit
754469b4
authored
Jan 13, 2022
by
Georg Koppen
Browse files
Merge branch 'm13'
parents
cfe24fec
09d7ca7e
Pipeline
#23597
passed with stages
in 26 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
754469b4
...
...
@@ -1021,7 +1021,9 @@ class V3BWLine(object):
desc_bw_obs_ls
.
append
(
r
.
relay_observed_bandwidth
)
if
desc_bw_obs_ls
:
return
round
(
mean
(
desc_bw_obs_ls
))
log
.
warning
(
"Descriptor observed bandwidth is None."
)
log
.
info
(
"Descriptor observed bandwidth is None. Can't calculate mean."
)
return
None
@
staticmethod
...
...
@@ -1030,7 +1032,7 @@ class V3BWLine(object):
for
r
in
reversed
(
results
):
if
r
.
relay_observed_bandwidth
is
not
None
:
return
r
.
relay_observed_bandwidth
log
.
warning
(
"Descriptor observed bandwidth is None."
)
log
.
info
(
"Descriptor observed bandwidth is None.
Can't get the last.
"
)
return
None
@
property
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment