Skip to content

Commit

Permalink
Merge pull request steemit#3658 from DoctorLai/patch-1
Browse files Browse the repository at this point in the history
Fix the uint32 overflow that happens during reporting the replay progress
  • Loading branch information
ety001 authored May 14, 2021
2 parents 55505fa + 9fa6f1b commit db645cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/database.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ uint32_t database::reindex( const open_args& args )
auto cur_block_num = itr.first.block_num();
if( cur_block_num % 100000 == 0 )
{
std::cerr << " " << double( cur_block_num * 100 ) / last_block_num << "% " << cur_block_num << " of " << last_block_num << " (" <<
std::cerr << " " << double( cur_block_num ) * 100 / last_block_num << "% " << cur_block_num << " of " << last_block_num << " (" <<
#ifdef ENABLE_MIRA
get_cache_size() << " objects cached using " << (get_cache_usage() >> 20) << "M"
#else
Expand Down

0 comments on commit db645cf

Please sign in to comment.