mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-06 23:52:38 -05:00
Add optional CryptoNight-Lite support.
This commit is contained in:
@@ -144,7 +144,7 @@ static BOOL TrySetLockPagesPrivilege() {
|
||||
|
||||
|
||||
const char * persistent_memory_allocate() {
|
||||
const int ratio = opt_double_hash ? 2 : 1;
|
||||
const int ratio = (opt_double_hash && opt_algo != ALGO_CRYPTONIGHT_LITE) ? 2 : 1;
|
||||
const int size = MEMORY * (opt_n_threads * ratio + 1);
|
||||
|
||||
if (TrySetLockPagesPrivilege()) {
|
||||
|
||||
Reference in New Issue
Block a user