transfer ui

This commit is contained in:
nvrl committed 2026-07-01 00:02:35 +02:00
1 parent 35bc957cd5
commit 5766bc4ed1
4 files changed
+204 -11

No files matched your search

+4 -1
View File
@@ -380,7 +380,10 @@ fn cmd_transfers() -> Result<()> {
TransferDirection::Upload => "↑",
};
let pct = if t.bytes_total > 0 {
format!("{:.0}%", 100.0 * t.bytes_completed as f64 / t.bytes_total as f64)
format!(
"{:.0}%",
100.0 * t.bytes_completed as f64 / t.bytes_total as f64
)
} else {
"—".to_string()
};