diff options
| author | oliviercommelarbre <oliviercommelarbre@gmail.com> | 2016-02-11 00:04:49 +0100 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2016-03-16 21:22:49 +0900 |
| commit | 9e05371fb6a70d7d5e9d49db31b879e79c1b56e7 (patch) | |
| tree | de5e25d3a5b89c932f897e6c4905ba7b507337ec /src/NetStat.h | |
| parent | f0f1b8ef47c391550ff99982f1cad3dd4e1d410d (diff) | |
Added support for a dynamic management of the number of concurrent downloads as a function of the overall bandwidth observed
Diffstat (limited to 'src/NetStat.h')
| -rw-r--r-- | src/NetStat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/NetStat.h b/src/NetStat.h index 90a8e9f0..cacf8b43 100644 --- a/src/NetStat.h +++ b/src/NetStat.h @@ -61,10 +61,14 @@ public: */ int calculateDownloadSpeed(); + int calculateNewestDownloadSpeed(int seconds); + int calculateAvgDownloadSpeed(); int calculateUploadSpeed(); + int calculateNewestUploadSpeed(int seconds); + int calculateAvgUploadSpeed(); void updateDownload(size_t bytes); |
