From 3597d8cb717acc31c9f2e8ac256dbe88ae030b19 Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周日, 22 3月 2020 11:51:31 +0800 Subject: [PATCH] improve documentation --- src/library/os/cpu_info_common.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/library/os/cpu_info_common.cpp b/src/library/os/cpu_info_common.cpp index d75ccf1..1ddf5ba 100644 --- a/src/library/os/cpu_info_common.cpp +++ b/src/library/os/cpu_info_common.cpp @@ -8,6 +8,7 @@ #include "cpu_info.hpp" namespace license { +namespace os { using namespace std; const unordered_map<string, VIRTUALIZATION_DETAIL> virtual_cpu_names{ @@ -28,7 +29,8 @@ } return is_virtual; } -VIRTUALIZATION_DETAIL CpuInfo::getVirtualizationDetail() const { + +VIRTUALIZATION_DETAIL CpuInfo::virtualization_details() const { string cpu_vendor = vendor(); auto it = virtual_cpu_names.find(cpu_vendor); VIRTUALIZATION_DETAIL result = BARE_TO_METAL; @@ -39,4 +41,5 @@ } return result; } +} // namespace os } // namespace license -- Gitblit v1.9.1