Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
juga
sbws
Commits
7ad67810
Commit
7ad67810
authored
Oct 23, 2018
by
juga
Browse files
Use num relays in the net to calculate percent
parent
43e80f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbws/lib/v3bwfile.py
View file @
7ad67810
...
...
@@ -817,7 +817,7 @@ class V3BWFile(object):
statsd
[
'num_target_relays'
]
=
round
(
statsd
[
'num_net_relays'
]
*
MIN_REPORT
/
100
)
statsd
[
'perc_measured_relays'
]
=
round
(
len
(
bw_lines
)
*
100
/
statsd
[
'num_
targ
et_relays'
])
/
statsd
[
'num_
n
et_relays'
])
statsd
[
'perc_measured_targed'
]
=
MIN_REPORT
if
statsd
[
'num_measured_relays'
]
<
statsd
[
'num_target_relays'
]:
log
.
warning
(
'The percentage of the measured relays is less than'
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment