1
0
mirror of https://github.com/esphome/esphome.git synced 2026-02-08 00:31:58 +00:00

[runtime_stats] Fix log output formatting alignment (#13155)

This commit is contained in:
J. Nick Koston
2026-01-11 17:18:49 -10:00
committed by GitHub
parent 52132ea3bc
commit 38e2e4a56d

View File

@@ -29,7 +29,7 @@ void RuntimeStatsCollector::record_component_time(Component *component, uint32_t
void RuntimeStatsCollector::log_stats_() {
ESP_LOGI(TAG,
"Component Runtime Statistics\n"
"Period stats (last %" PRIu32 "ms):",
" Period stats (last %" PRIu32 "ms):",
this->log_interval_);
// First collect stats we want to display
@@ -55,7 +55,7 @@ void RuntimeStatsCollector::log_stats_() {
}
// Log total stats since boot
ESP_LOGI(TAG, "Total stats (since boot):");
ESP_LOGI(TAG, " Total stats (since boot):");
// Re-sort by total runtime for all-time stats
std::sort(stats_to_display.begin(), stats_to_display.end(),