Use total memory (Linux report low free memory) and fix typo.
This commit is contained in:
parent
c7d2639010
commit
8791261220
2 changed files with 2 additions and 2 deletions
|
@ -74,5 +74,5 @@ xmrig::RxConfig::Mode xmrig::RxConfig::readMode(const rapidjson::Value &value) c
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return LightMode;
|
return AutoMode;
|
||||||
}
|
}
|
||||||
|
|
|
@ -167,7 +167,7 @@ void xmrig::RxDataset::allocate(bool hugePages)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_mode == RxConfig::AutoMode && uv_get_free_memory() < (maxSize() + RxCache::maxSize())) {
|
if (m_mode == RxConfig::AutoMode && uv_get_total_memory() < (maxSize() + RxCache::maxSize())) {
|
||||||
LOG_ERR(CLEAR "%s" RED_BOLD_S "not enough memory for RandomX dataset", rx_tag());
|
LOG_ERR(CLEAR "%s" RED_BOLD_S "not enough memory for RandomX dataset", rx_tag());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue