aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-09-08 19:38:58 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-09-08 19:38:58 -0500
commit48d8475b6ea77c6cc9670c9c312f3b7684b12a2c (patch)
treee98d53798608941bd357ee924df7335d30741304 /src/blockchain_db
parentMerge pull request #5824 (diff)
parentFix IP address serialization on big endian (diff)
downloadmonero-48d8475b6ea77c6cc9670c9c312f3b7684b12a2c.tar.xz
Merge pull request #5544
d046ca1 difficulty: fix check_hash on big endian (moneromooo-monero) bdda084 epee: fix local/loopback checks on big endian (moneromooo-monero) 32c3834 storages: fix writing varints on big endian (moneromooo-monero) 516f7b9 storages: fix 'portable' storage on big endian (moneromooo-monero) 0e2fda5 unit_tests: fix levin unit test on big endian (moneromooo-monero) 4672b5c db_lmdb: print percentages as percentages, not ratios (moneromooo-monero) 54fd97a slow-hash: fix CNv2+ on big endian (moneromooo-monero) c1fa4a7 boost: fix little/big endian compatibility (moneromooo-monero) bc1144e Fix IP address serialization on big endian (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 1ede7af62..760e380a9 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -595,7 +595,7 @@ bool BlockchainLMDB::need_resize(uint64_t threshold_size) const
MDEBUG("Space remaining: " << mei.me_mapsize - size_used);
MDEBUG("Size threshold: " << threshold_size);
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)
{