Create a result for a delta transfer.
(bytes_sent: u64, bytes_saved: u64, chunks_reused: u32, chunks_total: u32)
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected