Strip extra spaces from CPU brand string and improved BasicCpuInfo.
This commit is contained in:
parent
02c03b0465
commit
b02e596853
7 changed files with 103 additions and 59 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue