mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-04 16:56:59 +01:00
transfer ui
This commit is contained in:
1 parent
35bc957cd5
commit
5766bc4ed1
4 files changed
+204
-11
No files matched your search
@@ -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()
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user