Fixed calculating final avg/stdev latencies