aboutsummaryrefslogtreecommitdiffstats
path: root/Input/ICNConnectionConsumerApi.cpp
diff options
context:
space:
mode:
authorJacques Samain <jsamain+fdio@cisco.com>2017-06-29 15:27:40 +0200
committerJacques Samain <jsamain+fdio@cisco.com>2017-06-29 15:27:40 +0200
commit2e126cfa7d1c82a758b14133cc67e0ff7af1f11e (patch)
treef4b524933fe09e95e1f548b93b60f6b3e9952663 /Input/ICNConnectionConsumerApi.cpp
parent015dd155a50c2b78b381a9b5c28c012bc1dbd0ed (diff)
Reinstating adaptation logics that require downloading time
Change-Id: I772c67fb7cde42c5a21673fbd7c450e3b51a9959 Signed-off-by: Jacques Samain <jsamain+fdio@cisco.com>
Diffstat (limited to 'Input/ICNConnectionConsumerApi.cpp')
-rw-r--r--Input/ICNConnectionConsumerApi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Input/ICNConnectionConsumerApi.cpp b/Input/ICNConnectionConsumerApi.cpp
index d5048cba..e6715e68 100644
--- a/Input/ICNConnectionConsumerApi.cpp
+++ b/Input/ICNConnectionConsumerApi.cpp
@@ -182,6 +182,12 @@ void ICNConnectionConsumerApi::notifyStats(double winSize)
Debug("ICNConnection:\tNotificationICPDL\t%f\t%f\n", winSize, speed);
}
+void ICNConnectionConsumerApi::notifyDownloadTime(double downloadingTime)
+{
+ //downloadingTime is in microseconds, dnltime should be in seconds
+ this->dnltime = downloadingTime / 1000000;
+}
+
void ICNConnectionConsumerApi::SetBeta(float beta)
{
this->beta = beta;