Skip to content

Commit

Permalink
example: prepare more data for uploading to see the progress over time
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Nov 4, 2024
1 parent 70695f2 commit 8ec9e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/file_transfer_progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ int main(int argc, char *argv[])

handle_reply(client.connect("localhost", 2121, "user", "password"));

/* Prepare 32 KB for uploading. */
std::string data(32 * 1024, 'a');
/* Prepare 32 MB for uploading. */
std::string data(32 * 1024 * 1024, 'a');
std::istringstream iss(data);

transfer_callback transfer_cb(data.size());
Expand Down

0 comments on commit 8ec9e03

Please sign in to comment.