Updated link test

This commit is contained in:
Mark Qvist 2022-06-09 17:07:44 +02:00
parent be6910e4e0
commit a4b80e7ddb

View File

@ -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)