Implemented PATCH requests.

This commit is contained in:
XMRig 2020-10-25 13:41:39 +07:00
parent 79c96418c7
commit 03cd56ed73
No known key found for this signature in database
GPG key ID: 446A53638BE94409
21 changed files with 14102 additions and 9 deletions

View file

@ -17,6 +17,7 @@
*/
#include "base/net/stratum/benchmark/BenchConfig.h"
#include "3rdparty/fmt/core.h"
#include "3rdparty/rapidjson/document.h"
#include "base/io/json/Json.h"
@ -93,6 +94,5 @@ uint32_t xmrig::BenchConfig::getSize(const char *benchmark)
return false;
}
const std::string s = std::to_string(size) + "M";
return strcasecmp(benchmark, s.c_str()) == 0 ? size * 1000000 : 0;
return strcasecmp(benchmark, fmt::format("{}M", size).c_str()) == 0 ? size * 1000000 : 0;
}