mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-13 06:51:06 +00:00
fix: node stats updating live (#195)
This commit is contained in:
@@ -259,6 +259,7 @@ impl Handler<UpdateNode> for Chain {
|
||||
}
|
||||
Details::AfgAuthoritySet(authority) => {
|
||||
node.set_validator_address(authority.authority_id);
|
||||
self.broadcast();
|
||||
return;
|
||||
}
|
||||
_ => (),
|
||||
|
||||
@@ -134,7 +134,6 @@ impl Node {
|
||||
pub fn update_hardware(&mut self, interval: &SystemInterval) -> bool {
|
||||
let mut changed = false;
|
||||
|
||||
self.stats = interval.stats;
|
||||
if let Some(cpu) = interval.cpu {
|
||||
changed |= self.cpu.push(cpu);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user