fix: give the session a live /proc/stat and read GPU load and clock where other overlays do

This commit is contained in:
xXJsonDeruloXx committed 2026-10-01 12:53:17 -04:00
1 parent 48054a86ab
commit b29ece82c8
4 files changed
+153 -22

No files matched your search

@@ -231,7 +231,10 @@ public final class LinuxRuntime {
};
for (String[] entry : procFiles) {
File fake = new File(fakeProc, entry[0]);
if (fake.isFile() && !new File(entry[1]).canRead()) {
// A live stand-in the session binds itself (CpuStatComponent's /proc/stat) wins.
boolean live = false;
if (extraBinds != null) for (String spec : extraBinds) live |= spec.endsWith(":" + entry[1]);
if (!live && fake.isFile() && !new File(entry[1]).canRead()) {
bind(cmd, fake.getPath() + ":" + entry[1]);
}
}