mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-13 10:02:50 -05:00
Strip extra spaces from CPU brand string and improved BasicCpuInfo.
This commit is contained in:
@@ -134,7 +134,7 @@ public:
|
||||
cpu.AddMember("brand", StringRef(Cpu::info()->brand()), allocator);
|
||||
cpu.AddMember("aes", Cpu::info()->hasAES(), allocator);
|
||||
cpu.AddMember("x64", Cpu::info()->isX64(), allocator);
|
||||
cpu.AddMember("sockets", static_cast<uint64_t>(Cpu::info()->sockets()), allocator);
|
||||
cpu.AddMember("sockets", static_cast<uint64_t>(Cpu::info()->packages()), allocator);
|
||||
|
||||
reply.AddMember("version", APP_VERSION, allocator);
|
||||
reply.AddMember("kind", APP_KIND, allocator);
|
||||
|
||||
Reference in New Issue
Block a user