Make reported download speed less jitterry.

[CL 2348539 by Ben Marsh in Main branch]
This commit is contained in:
Ben Marsh
2014-11-04 11:31:50 -05:00
committed by UnrealBot
parent 5e0b64a707
commit d984dac8d2
2 changed files with 2 additions and 2 deletions

View File

@@ -438,8 +438,8 @@ namespace GitDependencies
WorkerThreads[Idx].Start();
}
// Tick the status message until we've finished or ended with an error. Use a circ
long[] NumBytesReadBuffer = new long[10];
// Tick the status message until we've finished or ended with an error. Use a circular buffer to average out the speed over time.
long[] NumBytesReadBuffer = new long[40];
for(int BufferIdx = 0; State.NumFilesRead < NumFilesTotal && State.ErrorMessage == null; BufferIdx = (BufferIdx + 1) % NumBytesReadBuffer.Length)
{
const int TickInterval = 100;