From 0f6b48aab394dfb5b338796500e6c9cd0690258e Mon Sep 17 00:00:00 2001 From: "Andrew (ShabatovAA)" Date: Mon, 20 May 2024 01:16:14 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B8=D0=BD=D0=B4=D0=B8=D0=B2=D0=B8?= =?UTF-8?q?=D0=B4=D1=83=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B2=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D0=B0=D0=BD=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 19754a6..6cb5f3a 100644 --- a/main.cpp +++ b/main.cpp @@ -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);