mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Improved indexing progress indicator.
This commit is contained in:
parent
6a7e58815c
commit
3347ef9100
1 changed files with 2 additions and 3 deletions
|
@ -1164,9 +1164,8 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
tickCount += completedPrimary;
|
||||
int additionalHeaders = info.fCompletedHeaders - info.fPrimaryHeaderCount;
|
||||
tickEstimate += info.fRequestedFilesCount;
|
||||
if (completedPrimary != 0)
|
||||
tickCount += additionalHeaders;
|
||||
tickEstimate += additionalHeaders * Math.sqrt((double) info.fRequestedFilesCount / completedPrimary);
|
||||
tickEstimate += additionalHeaders * Math.sqrt((double) info.fRequestedFilesCount / Math.max(completedPrimary, 1));
|
||||
} else {
|
||||
// For the ticks we don't consider additional headers.
|
||||
tickCount += completedPrimary;
|
||||
|
|
Loading…
Add table
Reference in a new issue