forked from lthn/blockchain
fixed a bug in hdd free space checking
This commit is contained in:
parent
6148bf27ae
commit
e1e99544d1
1 changed files with 3 additions and 0 deletions
|
|
@ -713,6 +713,9 @@ namespace currency
|
|||
#define MINIMUM_REQUIRED_FREE_SPACE_BYTES (1024 * 1024 * 100)
|
||||
void core::check_free_space()
|
||||
{
|
||||
if (!m_critical_error_handler)
|
||||
return;
|
||||
|
||||
boost::filesystem::space_info si = boost::filesystem::space(m_config_folder);
|
||||
|
||||
if (si.available < MINIMUM_REQUIRED_FREE_SPACE_BYTES)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue