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

Function rate

atomic-cli/src/commands/git/rolling_dashboard.rs:119–125  ·  view source on GitHub ↗
(progress: &Progress, elapsed: Duration)

Source from the content-addressed store, hash-verified

117}
118
119fn rate(progress: &Progress, elapsed: Duration) -> f64 {
120 if elapsed.is_zero() {
121 0.0
122 } else {
123 progress.published as f64 / elapsed.as_secs_f64()
124 }
125}
126
127fn eta(progress: &Progress, elapsed: Duration) -> String {
128 if progress.phase == "complete" {

Callers 1

etaFunction · 0.85

Calls 1

is_zeroMethod · 0.45

Tested by

no test coverage detected