summaryrefslogtreecommitdiffstats
path: root/env.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'env.cpp')
-rw-r--r--env.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/env.cpp b/env.cpp
index 6841987..677f6fb 100644
--- a/env.cpp
+++ b/env.cpp
@@ -52,6 +52,7 @@ std::string getEnv(
std::string getIndirectID(
std::string path,
+ const std::string& fileSuffix,
const SensorSet::key_type& sensor)
{
std::string content;
@@ -59,7 +60,7 @@ std::string getIndirectID(
path.append(sensor.first);
path.append(sensor.second);
path.append(1, '_');
- path.append(hwmon::entry::label);
+ path.append(fileSuffix);
std::ifstream handle(path.c_str());
if (!handle.fail())
OpenPOWER on IntegriCloud