aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-05 19:11:52 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-05 19:11:52 +0200
commit0e5c006207144b82173bfd51c48dac05f0282623 (patch)
tree9c1ddfe6538308e8c1c2567e5e86f9a1c047c489 /src
parentMerge pull request #3301 (diff)
parentdb_lmdb: fix free space reporting (diff)
downloadmonero-0e5c006207144b82173bfd51c48dac05f0282623.tar.xz
Merge pull request #3307
223d7d0c db_lmdb: fix free space reporting (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp3
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;
}
}