[LTP] [PATCH 1/3] lib/tst_net.sh: print all netstress results in tst_netload()
Petr Vorel
pvorel@suse.cz
Fri Feb 5 07:59:53 CET 2021
Hi Alexey,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
...
> - res=$((res / $passed))
> - echo "$res" > $rfile
> + local mean res_sum
r should be also local.
> + for r in $results; do
> + res_sum="$((res_sum + r))"
> + done
> + mean=$((res_sum / passed))
> + echo "$mean" > $rfile
> - tst_res_ TPASS "netstress passed, mean time '$res' ms"
> + tst_res_ TPASS "netstress passed, mean time $mean ms, data:$results"
Kind regards,
Petr
More information about the ltp
mailing list