Correction de la demo

This commit is contained in:
leo 2021-06-24 17:39:13 +02:00
parent d0a49e744e
commit 6a0a12d6ae

View file

@ -23,7 +23,9 @@ super = client.protocol.superviseur
rtt_l = [] rtt_l = []
rtt_s = [] rtt_s = []
for n_rep in range(1000): N_rep = 10000
for n_rep in range(N_rep):
# print('rep{}'.format(n_rep)) # print('rep{}'.format(n_rep))
response = client.get(path) response = client.get(path)
rtt_l.append(super.RTT_L) rtt_l.append(super.RTT_L)
@ -41,10 +43,9 @@ axs[0].hist(super.RTTs, 100, density=True)
axs[0].set_xlabel('RTT (s)') axs[0].set_xlabel('RTT (s)')
axs[0].set_xlim(left=0) axs[0].set_xlim(left=0)
# axs[1].step(range(1000), super.RTTs, where='post', label='$RTT$') # axs[1].step(range(N_rep), super.RTTs, where='post', label='$RTT$')
axs[1].plot(rtt_l, label="$RTT_L$")
axs[1].plot(rtt_s, label="$RTT_S$") axs[1].plot(rtt_s, label="$RTT_S$")
axs[1].plot(rtt_l, label="$RTT_L$")
axs[1].set_ylim(bottom=0) axs[1].set_ylim(bottom=0)
axs[1].set_xlabel('Nombre de message') axs[1].set_xlabel('Nombre de message')