From 4a9d809354d66565ad346662ef0d3775fc07ff6d Mon Sep 17 00:00:00 2001 From: "Lab4 (ChaginSA)" Date: Sun, 4 Jun 2023 23:10:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=BD=D0=B4=D0=B8=D0=B2=D0=B8=D0=B4?= =?UTF-8?q?=D1=83=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=B2=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=B0=D0=BD=D1=82=20=E2=84=966?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index e643dcf..aa506ce 100644 --- a/main.cpp +++ b/main.cpp @@ -74,11 +74,16 @@ download(const string& address) { exit(1); } - - curl_easy_cleanup(curl); + if(!res) { + /* check the size */ + double dla; + res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &dla); + if(!res) { + cerr << "Download size " << dla << " bytes\n" ; } + } - return input_data(buffer, false); + } } @@ -96,5 +101,7 @@ auto bins = make_histogram(in.numbers, in.bin_count); show_histogram_svg ( bins ); + + return 0; }