aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-23 09:06:10 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-02-23 09:06:10 +0000
commit223d7d0c7a2010311627ae8b5d03105e1707a87e (patch)
tree508879913eb4f196e6b0e7befffa6347b94793b1 /src/blockchain_db
parentMerge pull request #3245 (diff)
downloadmonero-223d7d0c7a2010311627ae8b5d03105e1707a87e.tar.xz
db_lmdb: fix free space reporting
reported by Brad Richards
Diffstat (limited to 'src/blockchain_db')
-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 bdec846d1..6e1c389b8 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;
}
}