From 483c73630a82fe8fbe9fe74cc8bbdd23a13d8b6b Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 15 2月 2020 23:49:50 +0800 Subject: [PATCH] pc identifiers work --- src/inspector/inspector.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inspector/inspector.cpp b/src/inspector/inspector.cpp index 160c016..ee3a483 100644 --- a/src/inspector/inspector.cpp +++ b/src/inspector/inspector.cpp @@ -42,11 +42,11 @@ cout << "Virtual machine:" << cpu.cpu_virtual() << endl; cout << "Cpu model : 0x" << std::hex << ((long)cpu.model()) << std::dec << endl; - char pc_identifier[LCC_API_PC_IDENTIFIER_SIZE + 1]; + char hw_identifier[LCC_API_PC_IDENTIFIER_SIZE + 1]; size_t bufSize = LCC_API_PC_IDENTIFIER_SIZE + 1; for (const auto& x : stringByStrategyId) { - if (identify_pc(x.first, pc_identifier, &bufSize)) { - std::cout << x.second << ':' << pc_identifier << std::endl; + if (identify_pc(x.first, hw_identifier, &bufSize)) { + std::cout << x.second << ':' << hw_identifier << std::endl; } else { std::cout << x.second << ": NA" << endl; -- Gitblit v1.9.1