@@ -50,16 +50,18 @@ void setup() {
5050 cpuMonitor.onSample([](const CpuUsageSample &s) {
5151#if portNUM_PROCESSORS > 1
5252 ESP_LOGI ("CPU", "core0=%.1f%% core1=%.1f%% avg=%.1f%% smoothed=%.1f%% temp=%.1fC (avg %.1fC)",
53- s.perCore[ 0] , s.perCore[ 1] , s.average,
54- std::isnan(s.smoothedAverage) ? -1.0f : s.smoothedAverage,
55- std::isnan(s.temperatureC) ? -1.0f : s.temperatureC,
56- std::isnan(s.temperatureAvgC) ? -1.0f : s.temperatureAvgC);
53+ s.perCore[ 0] , s.perCore[ 1] , s.average,
54+ std::isnan(s.smoothedAverage) ? -1.0f : s.smoothedAverage,
55+ std::isnan(s.temperatureC) ? -1.0f : s.temperatureC,
56+ std::isnan(s.temperatureAvgC) ? -1.0f : s.temperatureAvgC
57+ );
5758#else
5859 ESP_LOGI("CPU", "core0=%.1f%% avg=%.1f%% smoothed=%.1f%% temp=%.1fC (avg %.1fC)",
59- s.perCore[ 0] , s.average,
60- std::isnan(s.smoothedAverage) ? -1.0f : s.smoothedAverage,
61- std::isnan(s.temperatureC) ? -1.0f : s.temperatureC,
62- std::isnan(s.temperatureAvgC) ? -1.0f : s.temperatureAvgC);
60+ s.perCore[ 0] , s.average,
61+ std::isnan(s.smoothedAverage) ? -1.0f : s.smoothedAverage,
62+ std::isnan(s.temperatureC) ? -1.0f : s.temperatureC,
63+ std::isnan(s.temperatureAvgC) ? -1.0f : s.temperatureAvgC
64+ );
6365#endif
6466 });
6567}
0 commit comments