Fix CPU frequency detection for non-English locales (#2629)

* fix: ensure lscpu is using en_US locale for LANG

* fix: use environment in Process
This commit is contained in:
Madjid Taha
2025-12-04 08:20:21 +01:00
committed by GitHub
parent 8203115a24
commit 7d9a405146
@@ -102,6 +102,10 @@ Singleton {
Process {
id: findCpuMaxFreqProc
environment: ({
LANG: "C",
LC_ALL: "C"
})
command: ["bash", "-c", "lscpu | grep 'CPU max MHz' | awk '{print $4}'"]
running: true
stdout: StdioCollector {