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

Function cpu_label

atomic-cli/src/commands/git/rolling_dashboard.rs:114–117  ·  view source on GitHub ↗
(cpu: Option<f64>)

Source from the content-addressed store, hash-verified

112}
113
114fn cpu_label(cpu: Option<f64>) -> String {
115 cpu.map(|value| format!("{value:.1}% (100% = one core)"))
116 .unwrap_or_else(|| "unavailable / sampling".into())
117}
118
119fn rate(progress: &Progress, elapsed: Duration) -> f64 {
120 if elapsed.is_zero() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected