aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-08 12:09:44 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-08 12:12:36 +0000
commit6ca00b6d75fbd4a06456e23e5982e72ca8e5ba17 (patch)
treefc0d569b50e276638b41012071a9630f55d7e88f /src/cryptonote_basic/miner.cpp
parentMerge pull request #4036 (diff)
downloadmonero-6ca00b6d75fbd4a06456e23e5982e72ca8e5ba17.tar.xz
miner: really reset flags/precision on std::cout
Diffstat (limited to '')
-rw-r--r--src/cryptonote_basic/miner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index 2bd43de94..d0b03593e 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -201,7 +201,7 @@ namespace cryptonote
float hr = static_cast<float>(total_hr)/static_cast<float>(m_last_hash_rates.size());
const auto flags = std::cout.flags();
const auto precision = std::cout.precision();
- std::cout << "hashrate: " << std::setprecision(4) << std::fixed << hr << flags << precision << ENDL;
+ std::cout << "hashrate: " << std::setprecision(4) << std::fixed << hr << std::setiosflags(flags) << std::setprecision(precision) << ENDL;
}
}
m_last_hr_merge_time = misc_utils::get_tick_count();