File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -181,8 +181,7 @@ fetch_files(char *urls, char *fout)
181
181
if (!res ) {
182
182
/* check the size */
183
183
double cl ;
184
- res = curl_easy_getinfo (curl_handle , CURLINFO_CONTENT_LENGTH_DOWNLOAD , & cl );
185
- // res = curl_easy_getinfo(curl_handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &cl);
184
+ res = curl_easy_getinfo (curl_handle , CURLINFO_CONTENT_LENGTH_DOWNLOAD_T , & cl );
186
185
if (!res ) {
187
186
//printf("Size: %.0f\n", cl);
188
187
total_bytes = cl ;
@@ -291,7 +290,7 @@ fetch_files(char *urls, char *fout)
291
290
double dl ;
292
291
CURLcode res ;
293
292
/* check the size */
294
- res = curl_easy_getinfo (curl_handle , CURLINFO_SIZE_DOWNLOAD , & dl );
293
+ res = curl_easy_getinfo (curl_handle , CURLINFO_SIZE_DOWNLOAD_T , & dl );
295
294
if (!res ) {
296
295
printf ("%.0f\n" , dl / diff_time );
297
296
}
@@ -335,7 +334,7 @@ handle_signal(int signal)
335
334
double dl ;
336
335
CURLcode res ;
337
336
/* check the size */
338
- res = curl_easy_getinfo (curl_handle , CURLINFO_SIZE_DOWNLOAD , & dl );
337
+ res = curl_easy_getinfo (curl_handle , CURLINFO_SIZE_DOWNLOAD_T , & dl );
339
338
if (!res ) {
340
339
printf ("%.0f\n" , dl / diff_time );
341
340
}
You can’t perform that action at this time.
0 commit comments