]> git.notmuchmail.org Git - notmuch/commit
new: Print progress estimates only when we have sufficient information
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 26 Jan 2011 13:06:57 +0000 (14:06 +0100)
committerCarl Worth <cworth@cworth.org>
Wed, 26 Jan 2011 13:47:51 +0000 (23:47 +1000)
commitc58523088ac7fcbfa841187b1447269b638bfa95
treef961ba8ce0fa1d37563845a6b292059195224d31
parent1a915d1b3852c5771507710ed470547b53b1c7ec
new: Print progress estimates only when we have sufficient information

Without this patch, it might happen that the remaining time or processing
rate were calculated just after start where nothing was processed yet.
This resulted into division by a very small number (or zero) and the
printed information was of little value.

Instead of printing nonsenses we print only that the operation is in
progress. The estimates will be printed later, after there is enough data.
notmuch-new.c