@ -56,7 +56,11 @@ download(const string& address) {
cout << curl_easy_strerror(res);
exit(1);
}
curl_off_t speed;
res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD_T, &speed);
if (!res) {
fprintf(stderr, "Download speed %" CURL_FORMAT_CURL_OFF_T " bytes/sec\n", speed);
curl_easy_cleanup(curl);