aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-05-30 07:32:39 -0700
committerwarptangent <warptangent@inbox.com>2015-05-30 09:27:54 -0700
commit568060443765c96dabc53d22ad12e025bc702a9e (patch)
tree992a44fbba57e46206dc15675e78a773fe6d08ad /src/blockchain_db/lmdb
parentUpdate database resize behavior (diff)
downloadmonero-568060443765c96dabc53d22ad12e025bc702a9e.tar.xz
Replace hardcoded value with existing constant of same value
This was likely the intent.
Diffstat (limited to 'src/blockchain_db/lmdb')
-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 3ef5f3045..80cb5724e 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -284,7 +284,7 @@ bool BlockchainLMDB::need_resize()
uint64_t size_used = mst.ms_psize * mei.me_last_pgno;
- if ((double)size_used / mei.me_mapsize > 0.8)
+ if ((double)size_used / mei.me_mapsize > RESIZE_PERCENT)
{
return true;
}