kopia lustrzana https://github.com/micropython/micropython-lib
iperf3: Add compatibility for servers pre version 3.2.
Result message from servers pre version 3.2 do not encode start or end time, so workaround this by using the t3, t0 timestamps used elsewhere for sending. Fixes issue #665.pull/711/head
rodzic
ce3f282967
commit
01ab7ba6e2
|
@ -147,10 +147,14 @@ class Stats:
|
|||
|
||||
def report_receiver(self, stats):
|
||||
st = stats["streams"][0]
|
||||
dt = st["end_time"] - st["start_time"]
|
||||
|
||||
# iperf servers pre 3.2 do not transmit start or end time,
|
||||
# so use local as fallback if not available.
|
||||
dt = ticks_diff(self.t3, self.t0)
|
||||
|
||||
self.print_line(
|
||||
st["start_time"],
|
||||
st["end_time"],
|
||||
st.get("start_time", 0.0),
|
||||
st.get("end_time", dt * 1e-6),
|
||||
st["bytes"],
|
||||
st["packets"],
|
||||
st["errors"],
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
metadata(version="0.1.3", pypi="iperf3", pypi_publish="uiperf3")
|
||||
metadata(version="0.1.4", pypi="iperf3", pypi_publish="uiperf3")
|
||||
|
||||
module("iperf3.py")
|
||||
|
|
Ładowanie…
Reference in New Issue