Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
elixxir
integration
Commits
5b142c36
Commit
5b142c36
authored
3 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
add timestamps to results
parent
b8e93c9a
No related branches found
No related tags found
1 merge request
!4
Release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
basice2e/e2eReport.py
+11
-5
11 additions, 5 deletions
basice2e/e2eReport.py
with
11 additions
and
5 deletions
basice2e/e2eReport.py
+
11
−
5
View file @
5b142c36
...
...
@@ -98,13 +98,19 @@ def main():
for
msgDigest
,
senderDict
in
messages_sent
.
items
():
if
msgDigest
in
messages_received
:
num_successful
+=
1
message_latency
=
messages_received
[
msgDigest
][
"
received
"
]
-
messages_sent
[
msgDigest
][
"
sent
"
]
time_sent
=
messages_sent
[
msgDigest
][
"
sent
"
]
time_received
=
messages_received
[
msgDigest
][
"
received
"
]
message_latency
=
time_received
-
time_sent
latencies
.
append
(
message_latency
)
total_latency
+=
message_latency
log
.
info
(
"
Message {} sent by {} on round {} was received after {}
"
.
format
(
msgDigest
,
senderDict
[
"
sender
"
],
senderDict
[
"
round
"
],
message_latency
))
log
.
info
(
(
"
Message {} sent by {} on round {} was received after {}
"
+
"
\n\t\t\t\t\t\t\t
Sent: {}, Received: {}
"
).
format
(
msgDigest
,
senderDict
[
"
sender
"
],
senderDict
[
"
round
"
],
message_latency
,
time_sent
,
time_received
))
else
:
log
.
error
(
"
Message {} sent by {} on round {} was NOT received
"
.
format
(
msgDigest
,
senderDict
[
"
sender
"
],
...
...
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