Merge pull request #3307

223d7d0c db_lmdb: fix free space reporting (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-03-05 19:11:52 +02:00
commit 0e5c006207
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -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;
}
}