Updated link test

pull/76/head
Mark Qvist 2022-06-09 17:14:43 +02:00
rodzic a4b80e7ddb
commit 513a82e363
2 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -248,8 +248,8 @@ class TCPClientInterface(Interface):
def processOutgoing(self, data):
if self.online:
while self.writing:
time.sleep(0.01)
# while self.writing:
# time.sleep(0.01)
try:
self.writing = True

Wyświetl plik

@ -165,8 +165,9 @@ def targets():
def resource_concluded(resource):
print("Resource concluded")
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")
def link_established(link):
print("Link established")