summaryrefslogtreecommitdiff
path: root/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-04-25 14:28:02 -0400
committerAndrew Opalach <andrew@akon.city> 2026-04-25 14:46:39 -0400
commit0848d6c89defb95966deeecd1c61352deccbeaec (patch)
tree21a2e74fcabb85c02fda8959badc08b0f7de0261 /hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
parentef40a5119a77280863c21ba67397818514714ccc (diff)
downloaddotfiles-0848d6c89defb95966deeecd1c61352deccbeaec.tar.gz
dotfiles-0848d6c89defb95966deeecd1c61352deccbeaec.tar.bz2
dotfiles-0848d6c89defb95966deeecd1c61352deccbeaec.zip
New CPU + Cleanup
Diffstat (limited to 'hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff')
-rw-r--r--hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff b/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
new file mode 100644
index 0000000..4301053
--- /dev/null
+++ b/hosts/iroha/gentoo/patches/games-util/mangohud/jc42_ram_temp.diff
@@ -0,0 +1,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())