Prevent division by zero when there are no cores