From 311dbeed4da0f820f3284de7c89045e0f1332645 Mon Sep 17 00:00:00 2001 From: Joe Gallo Date: Thu, 4 Feb 2016 07:05:41 -0500 Subject: [PATCH] remove some temp-related comments Remove a few unnecessary temperature-related comments. --- osquery/tables/system/darwin/smc_keys.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/osquery/tables/system/darwin/smc_keys.cpp b/osquery/tables/system/darwin/smc_keys.cpp index 0ac1177b..d331a87d 100644 --- a/osquery/tables/system/darwin/smc_keys.cpp +++ b/osquery/tables/system/darwin/smc_keys.cpp @@ -96,9 +96,7 @@ std::set kSMCTemperatureKeys = { }; // clang-format on -// Two sources considered: -// * http://superuser.com/a/967056 -// * https://goo.gl/9kv6Ny +// http://superuser.com/a/967056 const std::map kSMCKeyDescriptions = { {"TCXC", "PECI CPU"}, {"TCXc", "PECI CPU"}, @@ -433,7 +431,7 @@ void genTemperature(const std::string &key, } auto &smcRow = key_data.back(); - if (smcRow["value"].empty() /*|| smcRow["type"].compare("sp78") != 0*/) { + if (smcRow["value"].empty()) { return; }