(cpu: Option<f64>)
| 112 | } |
| 113 | |
| 114 | fn 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 | |
| 119 | fn rate(progress: &Progress, elapsed: Duration) -> f64 { |
| 120 | if elapsed.is_zero() { |
nothing calls this directly
no outgoing calls
no test coverage detected