Convert tabs to spaces in cpu.cpp/cpu.h
@@ -235,9 +235,9 @@ bool CPUStats::UpdateCpuTemp(){
bool CPUStats::GetCpuFile() {
std::string name, path;
std::string hwmon = "/sys/class/hwmon/";
+
auto dirs = ls(hwmon.c_str());
- for (auto& dir : dirs)
- {
+ for (auto& dir : dirs) {
path = hwmon + dir;
name = read_line(path + "/name");
#ifndef NDEBUG
@@ -248,6 +248,7 @@ bool CPUStats::GetCpuFile(){
break;
}
}
+
if (!file_exists(path)) {
std::cerr << "MANGOHUD: Could not find cpu temp sensor location" << std::endl;
} else {
