mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
miner: really reset flags/precision on std::cout
This commit is contained in:
parent
e19652df51
commit
6ca00b6d75
@ -201,7 +201,7 @@ namespace cryptonote
|
|||||||
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 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 << 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();
|
m_last_hr_merge_time = misc_utils::get_tick_count();
|
||||||
|
Loading…
Reference in New Issue
Block a user