fix
parent
42f67a44a6
commit
e317a16a31
|
@ -132,19 +132,14 @@ int readTempHDD(const std::string& drive) {
|
||||||
return std::stoi(output);
|
return std::stoi(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
int readTemp(){
|
int readTemp() {
|
||||||
int T_CPU = readTempCPU();
|
int T_CPU = readTempCPU();
|
||||||
int max = T_CPU;
|
int max = T_CPU;
|
||||||
|
|
||||||
std::cout << "T_CPU = " << T_CPU << std::endl;
|
|
||||||
|
|
||||||
std::array<int, HDD_NAMES.size()> T_HDD;
|
std::array<int, HDD_NAMES.size()> T_HDD;
|
||||||
|
|
||||||
for (int i = 0; i < HDD_NAMES.size(); ++i) {
|
for (int i = 0; i < HDD_NAMES.size(); ++i) {
|
||||||
T_HDD[i] = readTempHDD(HDD_NAMES[i]);
|
T_HDD[i] = readTempHDD(HDD_NAMES[i]);
|
||||||
|
|
||||||
std::cout << "T_HDD[i] = " << T_HDD[i] << std::endl;
|
|
||||||
|
|
||||||
if (T_HDD[i] > max) {
|
if (T_HDD[i] > max) {
|
||||||
max = T_HDD[i];
|
max = T_HDD[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue