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
The Tor Project
Network Health
Metrics
Onionperf
Commits
120e425e
Commit
120e425e
authored
Jul 12, 2020
by
Karsten Loesing
Browse files
Restore
#40004
fix that got lost during rebase.
parent
5d5bff15
Changes
1
Hide whitespace changes
Inline
Side-by-side
onionperf/visualization.py
View file @
120e425e
...
...
@@ -59,7 +59,8 @@ class TGenVisualization(Visualization):
tgen_streams
=
analysis
.
get_tgen_streams
(
client
)
for
stream_id
,
stream_data
in
tgen_streams
.
items
():
stream
=
{
"id"
:
stream_id
,
"label"
:
label
,
"filesize_bytes"
:
int
(
stream_data
[
"stream_info"
][
"recvsize"
])}
"filesize_bytes"
:
int
(
stream_data
[
"stream_info"
][
"recvsize"
]),
"error_code"
:
None
}
stream
[
"server"
]
=
"onion"
if
".onion:"
in
stream_data
[
"transport_info"
][
"remote"
]
else
"public"
if
"time_info"
in
stream_data
:
s
=
stream_data
[
"time_info"
]
...
...
@@ -86,7 +87,8 @@ class TGenVisualization(Visualization):
tgen_transfers
=
analysis
.
get_tgen_transfers
(
client
)
for
transfer_id
,
transfer_data
in
tgen_transfers
.
items
():
stream
=
{
"id"
:
transfer_id
,
"label"
:
label
,
"filesize_bytes"
:
transfer_data
[
"filesize_bytes"
]}
"filesize_bytes"
:
transfer_data
[
"filesize_bytes"
],
"error_code"
:
None
}
stream
[
"server"
]
=
"onion"
if
".onion:"
in
transfer_data
[
"endpoint_remote"
]
else
"public"
if
"elapsed_seconds"
in
transfer_data
:
s
=
transfer_data
[
"elapsed_seconds"
]
...
...
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