diff options
author | michele papalini <micpapal+fdio@cisco.com> | 2017-09-12 15:18:08 +0200 |
---|---|---|
committer | michele papalini <micpapal+fdio@cisco.com> | 2017-09-12 15:18:08 +0200 |
commit | 6ab9d985a6b95ceca205918b5594e291ea48cc09 (patch) | |
tree | bca0f73f870112a4818d5336325d79a54699e9dc | |
parent | 0078209a7630579e7a016bd3c6cdcbba9a175b6d (diff) |
TCP statistics
Change-Id: Ia2cda9bcd2c0b4257d11d4fccd708351e46ec34e
Signed-off-by: michele papalini <micpapal+fdio@cisco.com>
-rw-r--r-- | libdash/source/network/AbstractChunk.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |