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
Metrics
Onionoo
Commits
5c8f0d53
Commit
5c8f0d53
authored
Jul 04, 2018
by
Iain R. Learmonth
Browse files
Removes unnecessary cast
parent
13d53601
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
View file @
5c8f0d53
...
...
@@ -628,7 +628,7 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
boolean
isExit
=
nodeStatus
.
getRelayFlags
().
contains
(
"Exit"
)
&&
!
nodeStatus
.
getRelayFlags
().
contains
(
"BadExit"
);
boolean
isGuard
=
nodeStatus
.
getRelayFlags
().
contains
(
"Guard"
);
double
consensusWeight
=
(
double
)
nodeStatus
.
getConsensusWeight
();
double
consensusWeight
=
nodeStatus
.
getConsensusWeight
();
consensusWeights
.
put
(
fingerprint
,
consensusWeight
);
totalConsensusWeight
+=
consensusWeight
;
if
(
consensusContainsBandwidthWeights
)
{
...
...
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