Updated link test

pull/76/head
Mark Qvist 2022-06-09 17:07:44 +02:00
rodzic be6910e4e0
commit a4b80e7ddb
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -229,8 +229,9 @@ def resource_profiling():
t = time.time() - start
print("Resource completed at "+size_str(resource_size/t, "b")+"ps")
rx_pr = (resource.link.attached_interface.rxb*8)/resource.link.attached_interface.rxptime
print("Average RX proccessing rate: "+size_str(rx_pr, "b")+"ps")
if hasattr(resource.link.attached_interface, "rxptime"):
rx_pr = (resource.link.attached_interface.rxb*8)/resource.link.attached_interface.rxptime
print("Average RX proccessing rate: "+size_str(rx_pr, "b")+"ps")
l1.teardown()
time.sleep(0.5)