From 6ab9d985a6b95ceca205918b5594e291ea48cc09 Mon Sep 17 00:00:00 2001 From: michele papalini Date: Tue, 12 Sep 2017 15:18:08 +0200 Subject: TCP statistics Change-Id: Ia2cda9bcd2c0b4257d11d4fccd708351e46ec34e Signed-off-by: michele papalini --- libdash/source/network/AbstractChunk.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdash/source/network/AbstractChunk.cpp b/libdash/source/network/AbstractChunk.cpp index 35774efe..81a3d57c 100644 --- a/libdash/source/network/AbstractChunk.cpp +++ b/libdash/source/network/AbstractChunk.cpp @@ -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; -- cgit 1.2.3-korg