Better formating
This commit is contained in:
parent
30872f20ab
commit
bf2508b476
1 changed files with 5 additions and 5 deletions
|
@ -7,10 +7,10 @@ from coapthon.client.helperclient import HelperClient
|
|||
from coapthon.client.superviseur import SuperviseurLocal, SuperviseurLocalFiltre
|
||||
from coapthon.utils import parse_uri
|
||||
|
||||
N_rep = 5000
|
||||
N_client = 5
|
||||
N_rep = 50
|
||||
N_client = 100
|
||||
|
||||
host, port, path = parse_uri("coap://localhost:5683/basic")
|
||||
host, port, path = parse_uri("coap://raspberrypi.local/basic")
|
||||
try:
|
||||
tmp = socket.gethostbyname(host)
|
||||
host = tmp
|
||||
|
@ -47,5 +47,5 @@ axs[-1].set_xlabel('RTT (s)')
|
|||
fig.tight_layout()
|
||||
fig.savefig('demo.png')
|
||||
|
||||
for super in supers:
|
||||
print(super.min_RTT, super.avg_RTT, super.tau_retransmission, super._n_envoie, super._n_tokken)
|
||||
for n, super in enumerate(supers):
|
||||
print("{:<5} | {:.5E} | {:.5E} | {:.5E} | {:0>5} | {:0>5}".format(n, super.min_RTT, super.avg_RTT, super.tau_retransmission, super._n_envoie, super._n_tokken))
|
Loading…
Reference in a new issue