Changeset 2160
- Timestamp:
- 6/13/2010 2:09:53 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/eraser/Eraser.Util/ProgressManager.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/eraser/Eraser.Util/ProgressManager.cs
r2152 r2160 500 500 501 501 //If the progress delta is zero, it usually means that the amount 502 //completed within the calculati n interval is too short -- lengthen502 //completed within the calculation interval is too short -- lengthen 503 503 //the interval so we can get a small difference, significant to make 504 504 //a speed calculation. Likewise, if it is too great a difference, 505 505 //we need to shorten the interval to get more accurate calculations 506 506 if (progressDelta == 0.0) 507 SpeedCalcInterval *= 2;508 else if (progressDelta > 3.0)507 SpeedCalcInterval += SpeedCalcInterval / 3; 508 else if (progressDelta > 0.01 && SpeedCalcInterval > 6) 509 509 SpeedCalcInterval -= 3; 510 510
Note: See TracChangeset
for help on using the changeset viewer.
