mirror of
https://github.com/monero-project/monero.git
synced 2025-12-31 07:00:57 -08:00
core: warn when free disk space is low
This commit is contained in:
@@ -157,6 +157,7 @@ namespace cryptonote
|
||||
res.block_size_limit = m_core.get_blockchain_storage().get_current_cumulative_blocksize_limit();
|
||||
res.status = CORE_RPC_STATUS_OK;
|
||||
res.start_time = (uint64_t)m_core.get_start_time();
|
||||
res.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space();
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -1335,6 +1336,7 @@ namespace cryptonote
|
||||
res.block_size_limit = m_core.get_blockchain_storage().get_current_cumulative_blocksize_limit();
|
||||
res.status = CORE_RPC_STATUS_OK;
|
||||
res.start_time = (uint64_t)m_core.get_start_time();
|
||||
res.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space();
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user