MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / liveness_at

Method liveness_at

atomic-agent/src/hook_health.rs:320–329  ·  view source on GitHub ↗
(&self, now: &str)

Source from the content-addressed store, hash-verified

318 }
319
320 fn liveness_at(&self, now: &str) -> String {
321 match (&self.last_fired, &self.last_ok) {
322 (None, _) => "never fired".to_string(),
323 (Some(_), None) => "fired, never succeeded".to_string(),
324 (Some(_), Some(ok)) => {
325 let age = relative_age(now, ok);
326 format!("last ok {age}")
327 }
328 }
329 }
330}
331
332// ---------------------------------------------------------------------------

Callers 1

livenessMethod · 0.80

Calls 1

relative_ageFunction · 0.85

Tested by

no test coverage detected