need to #to_i to compare as int

Silly bug exhibited when using debug_ascii_progress and
solrj_writer.batch_size together.