mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
[monerod] Added blocks remaining count during syncronisation.
And percent if usefull (% < 99)
This commit is contained in:
parent
9226acca4b
commit
c24a0af9f1
1 changed files with 14 additions and 1 deletions
|
@ -1167,8 +1167,20 @@ skip:
|
||||||
+ " blocks/sec), " + std::to_string(m_block_queue.get_data_size() / 1048576.f) + " MB queued";
|
+ " blocks/sec), " + std::to_string(m_block_queue.get_data_size() / 1048576.f) + " MB queued";
|
||||||
if (ELPP->vRegistry()->allowed(el::Level::Debug, "sync-info"))
|
if (ELPP->vRegistry()->allowed(el::Level::Debug, "sync-info"))
|
||||||
timing_message += std::string(": ") + m_block_queue.get_overview();
|
timing_message += std::string(": ") + m_block_queue.get_overview();
|
||||||
MGINFO_YELLOW(context << " Synced " << m_core.get_current_blockchain_height() << "/" << m_core.get_target_blockchain_height()
|
if(m_core.get_target_blockchain_height() == 0){
|
||||||
|
MGINFO_YELLOW(context << " Synced " << m_core.get_current_blockchain_height() << "/" << m_core.get_target_blockchain_height()
|
||||||
<< timing_message);
|
<< timing_message);
|
||||||
|
} else {
|
||||||
|
const int completition_percent = (m_core.get_current_blockchain_height() * 100 / m_core.get_target_blockchain_height());
|
||||||
|
if(completition_percent < 99) {//printing completion percent only if % is < of 99 cause for 99 >= this is useless
|
||||||
|
MGINFO_YELLOW(context << " Synced " << m_core.get_current_blockchain_height() << "/" << m_core.get_target_blockchain_height()
|
||||||
|
<< " (" << completition_percent << "% " << (m_core.get_target_blockchain_height() - m_core.get_current_blockchain_height())
|
||||||
|
<< " blocks remaining)" << timing_message);
|
||||||
|
} else {
|
||||||
|
MGINFO_YELLOW(context << " Synced " << m_core.get_current_blockchain_height() << "/" << m_core.get_target_blockchain_height()
|
||||||
|
<< timing_message);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1747,3 +1759,4 @@ skip:
|
||||||
m_core.stop();
|
m_core.stop();
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue