add limit for refork times in certain duration

what's the logic here?