On the uniform approximation of the partial sum of the Dirichlet series by a shorter sum