moler icon indicating copy to clipboard operation
moler copied to clipboard

api to simplify iperf result retrieval

Open greg-latuszek opened this issue 4 years ago • 0 comments

Currently iperf just returns parsed output as dict

Would be great to have API like

throughput =iperf.final_bandwith(unit="Mbits/sec")
transfered =iperf.total_transfer(unit="MBytes")

It should take last record of report (the one with interval 0-max) and recalculate bandwith according to requested unit.

greg-latuszek avatar Sep 27 '19 13:09 greg-latuszek