Skip to content

Commit

Permalink
webpage: stats: hub_messages_stats: Sort by system, component and mes…
Browse files Browse the repository at this point in the history
…sage id

Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and joaoantoniocardoso committed Feb 26, 2025
1 parent 0351a8a commit 83c7fea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/webpage/src/stats/hub_messages_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,14 @@ impl HubMessagesStatsHistorical {
}
}
}

self.systems_messages_stats.sort_keys();
self.systems_messages_stats.values_mut().for_each(|system_stats| {
system_stats.components_messages_stats.sort_keys();
system_stats
.components_messages_stats
.values_mut()
.for_each(|component_stats| component_stats.messages_stats.sort_keys());
});
}
}

0 comments on commit 83c7fea

Please sign in to comment.