fix throughput calculation bug