diff options
-rw-r--r-- | thermalCommon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/thermalCommon.cpp b/thermalCommon.cpp index 3f0c997..9c9d632 100644 --- a/thermalCommon.cpp +++ b/thermalCommon.cpp @@ -645,10 +645,10 @@ int ThermalCommon::get_cpu_usages(hidl_vec<CpuUsage>& list) { } fclose(cpu_file); - list[cpu_num].name = std::string("CPU") + std::to_string(cpu_num); - list[cpu_num].active = active; - list[cpu_num].total = total; - list[cpu_num].isOnline = online; + list[cpu].name = std::string("CPU") + std::to_string(cpu_num); + list[cpu].active = active; + list[cpu].total = total; + list[cpu].isOnline = online; cpu++; } fclose(file); |