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

Method delta

atomic-cli/tests/fixtures/helpers_c5.rs:287–295  ·  view source on GitHub ↗

Create a result for a delta transfer.

(bytes_sent: u64, bytes_saved: u64, chunks_reused: u32, chunks_total: u32)

Source from the content-addressed store, hash-verified

285
286 /// Create a result for a delta transfer.
287 pub fn delta(bytes_sent: u64, bytes_saved: u64, chunks_reused: u32, chunks_total: u32) -> Self {
288 Self {
289 used_delta: true,
290 bytes_sent,
291 bytes_saved,
292 chunks_reused,
293 chunks_total,
294 }
295 }
296
297 /// Percentage of bytes saved (0.0–100.0).
298 pub fn savings_pct(&self) -> f64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected