TCP statistics 97/8397/1
authormichele papalini <[email protected]>
Tue, 12 Sep 2017 13:18:08 +0000 (15:18 +0200)
committermichele papalini <[email protected]>
Tue, 12 Sep 2017 13:18:08 +0000 (15:18 +0200)
Change-Id: Ia2cda9bcd2c0b4257d11d4fccd708351e46ec34e
Signed-off-by: michele papalini <[email protected]>
libdash/source/network/AbstractChunk.cpp

index 35774ef..81a3d57 100644 (file)
@@ -167,6 +167,9 @@ void*   AbstractChunk::DownloadInternalConnection   (void *abstractchunk)
     curl_easy_getinfo(chunk->curl, CURLINFO_SPEED_DOWNLOAD,&speed);
     curl_easy_getinfo(chunk->curl, CURLINFO_SIZE_DOWNLOAD, &size);
     curl_easy_getinfo(chunk->curl, CURLINFO_TOTAL_TIME, &time);
+    
+    std::cout << "Download " << chunk->AbsoluteURI() << " duration: " << (time * 1000000) << " [usec] size " << size << 
+            " [bytes] speed " << (speed*8)/1000 << " [kbps] " << std::endl;
 
     //Speed is in Bps ==> *8 for the bps
     speed = 8*speed;