This cleans up the linting results by adding checks for
integer underflow/overflow in several places, suppressing the error in
places where it has been checked, or fixing the types when possible.
Update the progress line only when another line was received, which in
this case means a job has started or finished.
No need to keep reprinting the progress.