diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-21 11:52:35 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-21 11:52:35 +0000 |
commit | 00790a8921c93d77a4de0a93d289e19e34c11e5e (patch) | |
tree | 45d1cd5f057e9517717c93cddb89cb7c64f3835d /src | |
parent | Merge pull request #490 (diff) | |
download | monero-00790a8921c93d77a4de0a93d289e19e34c11e5e.tar.xz |
simplewallet: lessen display flicker confusion
Height seemed to be flying all over the place on a rescan here.
Logging to a file shows the heights are actually correct, and
this is some kind of screen refresh artifact. Flush after \r
and update less often to reduce this effect a lot.
Diffstat (limited to 'src')
-rw-r--r-- | src/simplewallet/simplewallet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/simplewallet/simplewallet.h b/src/simplewallet/simplewallet.h index 8636c1c7b..a4cb79124 100644 --- a/src/simplewallet/simplewallet.h +++ b/src/simplewallet/simplewallet.h @@ -175,9 +175,9 @@ namespace cryptonote m_blockchain_height = (std::max)(m_blockchain_height, height); } - if (std::chrono::milliseconds(1) < current_time - m_print_time || force) + if (std::chrono::milliseconds(20) < current_time - m_print_time || force) { - std::cout << QT_TRANSLATE_NOOP("cryptonote::simple_wallet", "Height ") << height << " / " << m_blockchain_height << '\r'; + std::cout << QT_TRANSLATE_NOOP("cryptonote::simple_wallet", "Height ") << height << " / " << m_blockchain_height << '\r' << std::flush; m_print_time = current_time; } } |