Skip to content
Snippets Groups Projects
Commit 3493e44e authored by Josh Brooks's avatar Josh Brooks
Browse files

Merge branch 'release' of gitlab.com:elixxir/integration into feature/DeleteContact

parents 397a9dcd 07df7660
No related branches found
No related tags found
1 merge request!4Release
...@@ -68,7 +68,7 @@ def main(): ...@@ -68,7 +68,7 @@ def main():
if sent_round not in rounds_sent: if sent_round not in rounds_sent:
rounds_sent[sent_round] = False rounds_sent[sent_round] = False
elif "Received message of type" in line: elif "Received message of type" in line or "Received AuthRequest from" in line or "Received AuthConfirm from" in line:
# Capture message receiving # Capture message receiving
received_message = re.findall(' msgDigest: (.{20})', line)[0] received_message = re.findall(' msgDigest: (.{20})', line)[0]
log.debug("Located received message: {}".format(received_message)) log.debug("Located received message: {}".format(received_message))
...@@ -103,14 +103,11 @@ def main(): ...@@ -103,14 +103,11 @@ def main():
message_latency = time_received - time_sent message_latency = time_received - time_sent
latencies.append(message_latency) latencies.append(message_latency)
total_latency += message_latency total_latency += message_latency
log.info( log.info("Message {} sent by {} on round {} was received after {}".format(msgDigest,
("Message {} sent by {} on round {} was received after {}" + senderDict["sender"],
"\n\t\t\t\t\t\t\tSent: {}, Received: {}").format(msgDigest, senderDict["round"],
senderDict["sender"], message_latency))
senderDict["round"], log.info("\tSent: {}, Received: {}".format(time_sent, time_received))
message_latency,
time_sent,
time_received))
else: else:
log.error("Message {} sent by {} on round {} was NOT received".format(msgDigest, log.error("Message {} sent by {} on round {} was NOT received".format(msgDigest,
senderDict["sender"], senderDict["sender"],
...@@ -121,10 +118,8 @@ def main(): ...@@ -121,10 +118,8 @@ def main():
else: else:
log.warning("Round {} was NOT confirmed successful, messages may have been dropped".format(round_id)) log.warning("Round {} was NOT confirmed successful, messages may have been dropped".format(round_id))
log.info("{}/{} messages received successfully! Mean: {}, Median: {}".format(num_successful, log.info("{}/{} messages received successfully!".format(num_successful, len(messages_sent)))
len(messages_sent), log.info("\tMean: {}, Median: {}".format(total_latency / num_successful, statistics.median(latencies)))
total_latency / num_successful,
statistics.median(latencies)))
if __name__ == "__main__": if __name__ == "__main__":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment