summaryrefslogtreecommitdiff
path: root/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
blob: 4301053a9d4ac668c6705b296958a69c330cf7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/memory.cpp b/src/memory.cpp
index fc117f5..2c01c51 100644
--- a/src/memory.cpp
+++ b/src/memory.cpp
@@ -43,7 +43,8 @@ void update_mem_temp() {
         std::string path = "/sys/class/hwmon/";
         auto dirs = ls(path.c_str(), "hwmon", LS_DIRS);
         for (auto &dir : dirs) {
-            if (read_line(path + dir + "/name") == "spd5118")
+            const auto name = read_line(path + dir + "/name");
+            if (name == "spd5118" || name == "jc42")
                 mem_temp_files.emplace_back(path + dir + "/temp1_input");
         }
         if (mem_temp_files.empty())