mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-10-20 18:56:21 +00:00
fix: node stats updating live (#195)
This commit is contained in:
1 parent
adbd7cb592
commit
b69adbb096
2 files changed
+1
-1
No files matched your search
@@ -259,6 +259,7 @@ impl Handler<UpdateNode> for Chain {
|
|||||||
}
|
}
|
||||||
Details::AfgAuthoritySet(authority) => {
|
Details::AfgAuthoritySet(authority) => {
|
||||||
node.set_validator_address(authority.authority_id);
|
node.set_validator_address(authority.authority_id);
|
||||||
|
self.broadcast();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
|
|||||||
@@ -134,7 +134,6 @@ impl Node {
|
|||||||
pub fn update_hardware(&mut self, interval: &SystemInterval) -> bool {
|
pub fn update_hardware(&mut self, interval: &SystemInterval) -> bool {
|
||||||
let mut changed = false;
|
let mut changed = false;
|
||||||
|
|
||||||
self.stats = interval.stats;
|
|
||||||
if let Some(cpu) = interval.cpu {
|
if let Some(cpu) = interval.cpu {
|
||||||
changed |= self.cpu.push(cpu);
|
changed |= self.cpu.push(cpu);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user