On the convergence of nonuniform ergodic means