diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-03-05 19:11:52 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-03-05 19:11:52 +0200 |
commit | 0e5c006207144b82173bfd51c48dac05f0282623 (patch) | |
tree | 9c1ddfe6538308e8c1c2567e5e86f9a1c047c489 /src/blockchain_db/lmdb/db_lmdb.cpp | |
parent | Merge pull request #3301 (diff) | |
parent | db_lmdb: fix free space reporting (diff) | |
download | monero-0e5c006207144b82173bfd51c48dac05f0282623.tar.xz |
Merge pull request #3307
223d7d0c db_lmdb: fix free space reporting (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.cpp')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 51dcb49a8..f9c829013 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -451,7 +451,8 @@ void BlockchainLMDB::do_resize(uint64_t increase_size) boost::filesystem::space_info si = boost::filesystem::space(path); if(si.available < add_size) { - MERROR("!! WARNING: Insufficient free space to extend database !!: " << si.available / 1LL << 20L); + MERROR("!! WARNING: Insufficient free space to extend database !!: " << + (si.available >> 20L) << " MB available, " << (add_size >> 20L) << " MB needed"); return; } } |