Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
calculateThroughputByChunkData() fixes (#4130)
* Add reset of shortDurationStartTime after chunkThroughputs.push() - shortDurationStartTime need to be reset after a chunkThroughputs.push() otherwise it can lead to spurious 'short duration' throughput measurements. - Moved reset of shortDurationBytesReceived to more optimal location so it is only reset when shortDurationStartTime === 0 * Included length of last piece of short duration data in throughput calculation - The length (byte count) of the final piece of 'short duration' data should be included in the throughput calculation otherwise it is ignored which leads to an underestimate.
- Loading branch information