fix: apply max history length

This commit is contained in:
Oliver Nordbjerg 2025-07-12 17:29:06 +02:00
parent 37fefd855e
commit 3015cac1fe
No known key found for this signature in database
GPG Key ID: 3B182D3AD953AB4B

View File

@ -30,8 +30,10 @@ impl EntityCountDiagnosticsPlugin {
impl Plugin for EntityCountDiagnosticsPlugin {
fn build(&self, app: &mut App) {
app.register_diagnostic(Diagnostic::new(Self::ENTITY_COUNT))
.add_systems(Update, Self::diagnostic_system);
app.register_diagnostic(
Diagnostic::new(Self::ENTITY_COUNT).with_max_history_length(self.max_history_length),
)
.add_systems(Update, Self::diagnostic_system);
}
}