Skip to main content

ended_sessions

Function ended_sessions 

Source
pub fn ended_sessions(
    uid: &str,
    segments: &[Segment],
    roots: &Roots,
    policy: &Policy,
    now_ms: i64,
) -> Vec<Ended>
Expand description

The agent’s ended sessions whose file is there, from its segments (oldest first). The newest session is ended when it has been idle for the limit; whether the agent is running now is for the lease to say.