Fix integer overflow on queuing delay calculation.