mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-18 03:25:40 +00:00
Check cpu governor
This commit is contained in:
parent
51b0939a80
commit
8ffdeb8ce1
@ -609,7 +609,7 @@ void init_system_info(){
|
|||||||
os = exec("cat /etc/*-release | grep 'PRETTY_NAME' | cut -d '=' -f 2-");
|
os = exec("cat /etc/*-release | grep 'PRETTY_NAME' | cut -d '=' -f 2-");
|
||||||
os.erase(remove(os.begin(), os.end(), '\"' ), os.end());
|
os.erase(remove(os.begin(), os.end(), '\"' ), os.end());
|
||||||
trim(os);
|
trim(os);
|
||||||
cpusched = read_line("/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor");
|
cpu_governor = read_line("/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor");
|
||||||
|
|
||||||
const char* mangohud_recursion = getenv("MANGOHUD_RECURSION");
|
const char* mangohud_recursion = getenv("MANGOHUD_RECURSION");
|
||||||
if (!mangohud_recursion) {
|
if (!mangohud_recursion) {
|
||||||
@ -726,6 +726,7 @@ void init_system_info(){
|
|||||||
<< "Os:" << os << "\n"
|
<< "Os:" << os << "\n"
|
||||||
<< "Gpu:" << gpu << "\n"
|
<< "Gpu:" << gpu << "\n"
|
||||||
<< "Driver:" << driver << "\n"
|
<< "Driver:" << driver << "\n"
|
||||||
|
<< "CPU Governor:" << cpu_governor << "\n"
|
||||||
<< "Sync:" << HUDElements.sync << std::endl;
|
<< "Sync:" << HUDElements.sync << std::endl;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user