From 2d8c0f26c71e90e30d8aef35f7ae95003abf13d6 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 31 May 2018 16:05:52 +0200 Subject: cargo fmt --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index c0b8850..e793760 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -275,7 +275,8 @@ fn set_agent_masters(data: &raw::Evtc, agents: &mut [Agent]) -> Result<(), EvtcE if event.src_master_instid != 0 { let mut master_addr = None; for agent in &*agents { - if agent.instance_id == event.src_master_instid && agent.first_aware < event.time + if agent.instance_id == event.src_master_instid + && agent.first_aware < event.time && event.time < agent.last_aware { master_addr = Some(agent.addr); -- cgit v1.2.3