summaryrefslogtreecommitdiff
path: root/src/NetStat.cc
Commit message (Collapse)AuthorAgeFilesLines
* Reset sessionDownloadLength and sessionUploadLength on download startTatsuhiro Tsujikawa2019-10-121-0/+2
| | | | | | | This commit resets sessionDownloadLength and sessionUploadLength when a download restarted (including unpause RPC method). Fixes #1486
* Use default where possibleNils Maier2016-08-291-1/+1
|
* Remove trailing white spacesTatsuhiro Tsujikawa2016-03-161-1/+1
|
* Added support for a dynamic management of the number of concurrent downloads ↵oliviercommelarbre2016-03-161-0/+10
| | | | as a function of the overall bandwidth observed
* Updating upload size and speed must be done separatelyTatsuhiro Tsujikawa2016-01-051-2/+9
|
* make clang-format using clang-format-3.6Tatsuhiro Tsujikawa2015-12-271-14/+9
|
* Reworked download/upload statistics calculationTatsuhiro Tsujikawa2012-10-251-0/+126
The old implementation calculates download/upload statistics for a RequestGroup by summing up all PeerStat objects. For global statistics, those are summed together. This clearly incurs runtime penalty and we introduced some kind of caching which updates statistics every 250ms but it did not work right. This change removes all these aggregation code, and instead makes RequestGroup and RequestGroupMan objects hold NetStat object and download/upload bytes are directly calculated by thier own NetStat. This is far more simplar than the old way and less runtime penalty and brings more accuracy.