code: индивидуальный вариант

master
Andrew (ShabatovAA) 12 месяцев назад
Родитель 283c812736
Сommit 0f6b48aab3

@ -67,8 +67,8 @@ Input download(const string& address)
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
res = curl_easy_perform(curl);
if (!res){
double speed;
res1 = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed);
curl_off_t speed;
res1 = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD_T, &speed);
if(!res1){
cout << "Upload speed bytes/sec\n" << speed;
exit(1);

Загрузка…
Отмена
Сохранить