Added 250K and 500K offline benchmarks.
This commit is contained in:
parent
837bd1a43c
commit
e3727f01b8
5 changed files with 60 additions and 17 deletions
|
@ -96,9 +96,13 @@ uint32_t xmrig::BenchConfig::getSize(const char *benchmark)
|
|||
}
|
||||
|
||||
const auto size = strtoul(benchmark, nullptr, 10);
|
||||
if (size < 1 || size > 10) {
|
||||
return 0;
|
||||
if (size >= 1 && size <= 10) {
|
||||
return strcasecmp(benchmark, fmt::format("{}M", size).c_str()) == 0 ? size * 1000000 : 0;
|
||||
}
|
||||
|
||||
return strcasecmp(benchmark, fmt::format("{}M", size).c_str()) == 0 ? size * 1000000 : 0;
|
||||
if (size == 250 || size == 500) {
|
||||
return strcasecmp(benchmark, fmt::format("{}K", size).c_str()) == 0 ? size * 1000 : 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue