diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-23 09:06:10 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-02-23 09:06:10 +0000 |
commit | 223d7d0c7a2010311627ae8b5d03105e1707a87e (patch) | |
tree | 508879913eb4f196e6b0e7befffa6347b94793b1 /src | |
parent | Merge pull request #3245 (diff) | |
download | monero-223d7d0c7a2010311627ae8b5d03105e1707a87e.tar.xz |
db_lmdb: fix free space reporting
reported by Brad Richards
Diffstat (limited to 'src')
-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 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; } } |