Check cpu governor

This commit is contained in:
FlightlessMango 2021-03-16 09:52:13 +01:00
parent 51b0939a80
commit 8ffdeb8ce1

View File

@ -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