mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 07:48:52 +00:00
db_lmdb: print percentages as percentages, not ratios
This commit is contained in:
parent
0e2fda5bf0
commit
4672b5cea9
@ -595,7 +595,7 @@ bool BlockchainLMDB::need_resize(uint64_t threshold_size) const
|
|||||||
MDEBUG("Space remaining: " << mei.me_mapsize - size_used);
|
MDEBUG("Space remaining: " << mei.me_mapsize - size_used);
|
||||||
MDEBUG("Size threshold: " << threshold_size);
|
MDEBUG("Size threshold: " << threshold_size);
|
||||||
float resize_percent = RESIZE_PERCENT;
|
float resize_percent = RESIZE_PERCENT;
|
||||||
MDEBUG(boost::format("Percent used: %.04f Percent threshold: %.04f") % ((double)size_used/mei.me_mapsize) % resize_percent);
|
MDEBUG(boost::format("Percent used: %.04f Percent threshold: %.04f") % (100.*size_used/mei.me_mapsize) % (100.*resize_percent));
|
||||||
|
|
||||||
if (threshold_size > 0)
|
if (threshold_size > 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user