Этот коммит содержится в:
2025-05-19 16:10:13 +03:00
родитель e32d622ada
Коммит ef0fcfca11

Просмотреть файл

@@ -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);
} }