Skip to content

Commit

Permalink
Merge pull request monero-project#4523
Browse files Browse the repository at this point in the history
6ca00b6 miner: really reset flags/precision on std::cout (moneromooo-monero)
  • Loading branch information
fluffypony committed Oct 20, 2018
2 parents 5c418c0 + 6ca00b6 commit a145ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptonote_basic/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a145ae5

Please sign in to comment.