Unlock benchmark size for debug builds.

This commit is contained in:
XMRig 2020-11-16 08:56:35 +07:00
parent 926871cbe1
commit be8245fc92
No known key found for this signature in database
GPG key ID: 446A53638BE94409
2 changed files with 16 additions and 0 deletions

View file

@ -137,5 +137,9 @@ uint32_t xmrig::BenchConfig::getSize(const char *benchmark)
return strcasecmp(benchmark, fmt::format("{}K", size).c_str()) == 0 ? size * 1000 : 0;
}
# ifndef NDEBUG
return size >= 10000 ? size : 0;
# else
return 0;
# endif
}