iperf3_plotter icon indicating copy to clipboard operation
iperf3_plotter copied to clipboard

split: null: invalid number of lines

Open israelpeng opened this issue 3 years ago • 1 comments

preprocessor.sh trows error "split: null: invalid number of lines" because the following line looks for ".end.sum_sent.seconds" but the json output has ".end.sum.seconds"

num_flows=jq '.end.sum_sent.seconds' $1 | cut -d. -f1

json output looks like this: ... "sum": { "start": 0, "end": 18000.060148, "seconds": 18000.060148, "bytes": 0, "bits_per_second": 0, "jitter_ms": 0.053463, "lost_packets": 481, "packets": 62154384, "lost_percent": 0.000774 }, ...

israelpeng avatar Mar 16 '21 13:03 israelpeng