summaryrefslogtreecommitdiff
path: root/src/SpeedCalc.h
diff options
context:
space:
mode:
authoroliviercommelarbre <oliviercommelarbre@gmail.com>2016-02-11 00:04:49 +0100
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-16 21:22:49 +0900
commit9e05371fb6a70d7d5e9d49db31b879e79c1b56e7 (patch)
treede5e25d3a5b89c932f897e6c4905ba7b507337ec /src/SpeedCalc.h
parentf0f1b8ef47c391550ff99982f1cad3dd4e1d410d (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/SpeedCalc.h')
-rw-r--r--src/SpeedCalc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SpeedCalc.h b/src/SpeedCalc.h
index 25eb8c6f..99f4fb00 100644
--- a/src/SpeedCalc.h
+++ b/src/SpeedCalc.h
@@ -61,6 +61,8 @@ public:
*/
int calculateSpeed();
+ int calculateNewestSpeed(int seconds);
+
int getMaxSpeed() const { return maxSpeed_; }
int calculateAvgSpeed() const;