mirror of https://github.com/DJ2LS/FreeDATA.git
bringing back statistics
parent
b0c662614d
commit
c2388a6594
|
|
@ -187,6 +187,11 @@ class ARQSessionIRS(arq_session.ARQSession):
|
|||
)
|
||||
|
||||
self.set_state(IRS_State.BURST_REPLY_SENT)
|
||||
self.event_manager.send_arq_session_progress(False, self.id, self.dxcall, self.received_bytes,
|
||||
self.total_length, self.state.name,
|
||||
statistics=self.calculate_session_statistics(
|
||||
self.confirmed_bytes, self.total_length))
|
||||
|
||||
self.launch_transmit_and_wait(ack, self.TIMEOUT_DATA, mode=FREEDV_MODE.signalling_ack)
|
||||
return None, None
|
||||
|
||||
|
|
|
|||
|
|
@ -166,12 +166,14 @@ class ARQSessionISS(arq_session.ARQSession):
|
|||
# self.event_manager.send_arq_session_progress(
|
||||
# True, self.id, self.dxcall, self.confirmed_bytes, self.total_length, self.state.name, statistics=self.calculate_session_statistics(self.confirmed_bytes, self.total_length))
|
||||
|
||||
|
||||
if self.expected_byte_offset > self.total_length:
|
||||
self.confirmed_bytes = self.total_length
|
||||
elif not fallback:
|
||||
self.confirmed_bytes = self.expected_byte_offset
|
||||
|
||||
self.log(f"IRS confirmed {self.confirmed_bytes}/{self.total_length} bytes")
|
||||
self.event_manager.send_arq_session_progress(True, self.id, self.dxcall, self.confirmed_bytes, self.total_length, self.state.name, statistics=self.calculate_session_statistics(self.confirmed_bytes, self.total_length))
|
||||
|
||||
# check if we received an abort flag
|
||||
if irs_frame["flag"]["ABORT"]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue