Fix possible arithmetic exceptions when calculating throttling time.