Use uv_get_free_memory.
This commit is contained in:
parent
64fb4f265b
commit
c529770d38
3 changed files with 7 additions and 3 deletions
|
@ -167,7 +167,7 @@ void xmrig::RxDataset::allocate(bool hugePages)
|
|||
return;
|
||||
}
|
||||
|
||||
if (m_mode == RxConfig::AutoMode && uv_get_total_memory() < (maxSize() + RxCache::maxSize())) {
|
||||
if (m_mode == RxConfig::AutoMode && uv_get_free_memory() < (maxSize() + RxCache::maxSize())) {
|
||||
LOG_ERR(CLEAR "%s" RED_BOLD_S "not enough memory for RandomX dataset", rx_tag());
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue