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