code:Защита
Этот коммит содержится в:
@@ -49,6 +49,11 @@ Input download(const string& address) {
|
|||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double download_speed = 0.0;
|
||||||
|
curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD, &download_speed);
|
||||||
|
cerr << "Download speed: " << download_speed << " bytes/sec\n";
|
||||||
|
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
return input_data(buffer, false);
|
return input_data(buffer, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user