mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
miner: restore stream flags after changing them
Coverity 136462
This commit is contained in:
parent
a093092ef7
commit
3ebd05d4e5
1 changed files with 2 additions and 1 deletions
|
@ -199,8 +199,9 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
uint64_t total_hr = std::accumulate(m_last_hash_rates.begin(), m_last_hash_rates.end(), 0);
|
uint64_t total_hr = std::accumulate(m_last_hash_rates.begin(), m_last_hash_rates.end(), 0);
|
||||||
float hr = static_cast<float>(total_hr)/static_cast<float>(m_last_hash_rates.size());
|
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();
|
const auto precision = std::cout.precision();
|
||||||
std::cout << "hashrate: " << std::setprecision(4) << std::fixed << hr << precision << ENDL;
|
std::cout << "hashrate: " << std::setprecision(4) << std::fixed << hr << flags << precision << ENDL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_last_hr_merge_time = misc_utils::get_tick_count();
|
m_last_hr_merge_time = misc_utils::get_tick_count();
|
||||||
|
|
Loading…
Reference in a new issue