Minor fix #2018-006
This commit is contained in:
parent
1453dbb861
commit
d7c96b57c4
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ int SelfMaintenance::getCPUTemperature(int pT){
|
||||||
m_cpuCoresCount = num_cpu;
|
m_cpuCoresCount = num_cpu;
|
||||||
//---
|
//---
|
||||||
ifstream cpu_freq("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq");
|
ifstream cpu_freq("/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq");
|
||||||
ifstream cpu_temp("/sys/class/thermal/thermal_zone0/temp");
|
ifstream cpu_temp("/sys/class/thermal/thermal_zone0/temp1");
|
||||||
//---
|
//---
|
||||||
strStream << cpu_freq.rdbuf();
|
strStream << cpu_freq.rdbuf();
|
||||||
strStream >> m_cpuSingleCoreSpeed;
|
strStream >> m_cpuSingleCoreSpeed;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue