Skip to content

Commit 34b7e58

Browse files
committed
iperf3: macOS server compatibility
Result message does not appear to encode start, end time, so work around, using the t3, t0 timestamps used else where for sending. Fixes #665
1 parent a1b9aa9 commit 34b7e58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python-ecosys/iperf3/iperf3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ def stop(self):
147147

148148
def report_receiver(self, stats):
149149
st = stats["streams"][0]
150-
dt = st["end_time"] - st["start_time"]
150+
dt = ticks_diff(self.t3, self.t0)
151151
self.print_line(
152-
st["start_time"],
153-
st["end_time"],
152+
st.get("start_time", 0.0),
153+
st.get("end_time", dt * 1e-6),
154154
st["bytes"],
155155
st["packets"],
156156
st["errors"],

0 commit comments

Comments
 (0)