fix throughput calculation