Scratch that.

This commit is contained in:
Ray Greenwell
2012-03-12 21:44:33 +00:00
parent be1385d634
commit e025be1079
@@ -48,10 +48,8 @@ public class MetaProgressObserver implements ProgressObserver
// documentation inherited from interface // documentation inherited from interface
public void progress (int percent) public void progress (int percent)
{ {
if (_elementSize > 0) {
_target.progress((int)((_accum + (percent * _elementSize)) / _totalSize)); _target.progress((int)((_accum + (percent * _elementSize)) / _totalSize));
} }
}
protected ProgressObserver _target; protected ProgressObserver _target;
protected long _totalSize, _accum, _elementSize; protected long _totalSize, _accum, _elementSize;