diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-27 17:38:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-27 17:40:01 +0000 |
commit | 0a95cdaa803ac06d9fb29aff7f54e4a316cba8c3 (patch) | |
tree | 78bc7e76c5853c42267760dede8eaa561522def6 /src/blockchain_utilities/blockchain_import.cpp | |
parent | Merge pull request #4721 (diff) | |
download | monero-0a95cdaa803ac06d9fb29aff7f54e4a316cba8c3.tar.xz |
blockchain_utilities: fix logs and cout output colliding
Diffstat (limited to 'src/blockchain_utilities/blockchain_import.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index 7f92ecd87..eae078ea2 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -396,7 +396,7 @@ int import_from_file(cryptonote::core& core, const std::string& import_file_path { std::cout << refresh_string << "block " << h-1 << " / " << block_stop - << std::flush; + << "\r" << std::flush; std::cout << ENDL << ENDL; MINFO("Specified block number reached - stopping. block: " << h-1 << " total blocks: " << h); quit = 1; @@ -432,7 +432,7 @@ int import_from_file(cryptonote::core& core, const std::string& import_file_path { std::cout << refresh_string << "block " << h-1 << " / " << block_stop - << std::flush; + << "\r" << std::flush; } if (opt_verify) |