Reinstating adaptation logics that require downloading time 50/7350/1
authorJacques Samain <[email protected]>
Thu, 29 Jun 2017 13:27:40 +0000 (15:27 +0200)
committerJacques Samain <[email protected]>
Thu, 29 Jun 2017 13:27:40 +0000 (15:27 +0200)
Change-Id: I772c67fb7cde42c5a21673fbd7c450e3b51a9959
Signed-off-by: Jacques Samain <[email protected]>
Input/ICNConnectionConsumerApi.cpp
Input/ICNConnectionConsumerApi.h
libdash/source/xml/Node.cpp

index d5048cb..e6715e6 100644 (file)
@@ -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;
index 240ebca..9a5f8a4 100644 (file)
@@ -80,7 +80,10 @@ public:
     const std::vector<dash::metrics::IHTTPTransaction *> &GetHTTPTransactionList() const;
     virtual void SetBeta(float beta);
     virtual void SetDrop(float drop);
+
+    //libl4::transport::IcnObserver
     virtual void notifyStats(double throughput);
+    virtual void notifyDownloadTime(double downloadingTime);
 
 private:
     libl4::http::HTTPClientConnection *hTTPClientConnection;
index 0747a8e..5319320 100644 (file)
@@ -209,7 +209,6 @@ dash::mpd::Timeline*                        Node::ToTimeline            ()  cons
 
     if (this->HasAttribute("t"))
     {
-        uint64_t yolo = strtoul(this->GetAttributeValue("t").c_str(), NULL, 10);
         timeline->SetStartTime(strtoul(this->GetAttributeValue("t").c_str(), NULL, 10));
     }
     if (this->HasAttribute("d"))