fix: node stats updating live (#195)

This commit is contained in:
Maciej Hirsz
2019-11-08 14:12:27 +01:00
committed by GitHub
parent adbd7cb592
commit b69adbb096
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -259,6 +259,7 @@ impl Handler<UpdateNode> for Chain {
}
Details::AfgAuthoritySet(authority) => {
node.set_validator_address(authority.authority_id);
self.broadcast();
return;
}
_ => (),
-1
View File
@@ -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);
}