Author: mlandres Date: Tue May 15 12:48:50 2007 New Revision: 5546 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5546&view=rev Log: immediately report reaching 100% Modified: trunk/libzypp/zypp/ProgressData.cc Modified: trunk/libzypp/zypp/ProgressData.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/ProgressData.cc?rev=5546&r1=5545&r2=5546&view=diff ============================================================================== --- trunk/libzypp/zypp/ProgressData.cc (original) +++ trunk/libzypp/zypp/ProgressData.cc Tue May 15 12:48:50 2007 @@ -42,7 +42,10 @@ value_type newVal = _d->_val * 100; newVal /= ( _d->_max - _d->_min ); - if ( newVal - _d->_last_val > 20 || Date::now() - _d->_last_send > 1 || _d->_state == END ) + if ( newVal - _d->_last_val > 20 + || Date::now() - _d->_last_send > 1 + || ( newVal == 100 && _d->_last_send != 100 ) + || _d->_state == END ) { _d->_last_val = newVal; _d->_last_send = Date::now(); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org