fix update stats display
This commit is contained in:
parent
c4f13df9c7
commit
aa14c903db
@ -181,17 +181,7 @@ where
|
|||||||
// TODO: The stats buffer should be added on client add.
|
// TODO: The stats buffer should be added on client add.
|
||||||
let client = stats.client_stats_mut_for(sender_id);
|
let client = stats.client_stats_mut_for(sender_id);
|
||||||
client.update_executions(*executions as u64, *time);
|
client.update_executions(*executions as u64, *time);
|
||||||
stats.display(event.name().to_string(), sender_id);
|
stats.display(event.name().to_string() + " #" + &sender_id.to_string());
|
||||||
Ok(BrokerEventResult::Handled)
|
|
||||||
}
|
|
||||||
Event::UpdateUserStats {
|
|
||||||
name,
|
|
||||||
value,
|
|
||||||
phantom: _,
|
|
||||||
} => {
|
|
||||||
let client = stats.client_stats_mut_for(sender_id);
|
|
||||||
client.update_user_stats(name.clone(), value.clone());
|
|
||||||
stats.display(event.name().to_string(), sender_id);
|
|
||||||
Ok(BrokerEventResult::Handled)
|
Ok(BrokerEventResult::Handled)
|
||||||
}
|
}
|
||||||
#[cfg(feature = "introspection")]
|
#[cfg(feature = "introspection")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user