Skip to content

Commit

Permalink
use the same up/down symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
micielski committed Jul 8, 2024
1 parent d52f986 commit 6b681c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rm-main/src/ui/tabs/torrents/bottom_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Component for BottomStats {
let download = bytes_to_human_format(stats.download_speed);
let upload = bytes_to_human_format(stats.upload_speed);

let mut text = format!(" {download} | {upload}");
let mut text = format!(" {download} | {upload}");

if let Some(free_space) = &*self.free_space.lock().unwrap() {
let free_space = bytes_to_human_format(free_space.size_bytes);
Expand Down
4 changes: 2 additions & 2 deletions rm-main/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ pub fn seconds_to_human_format(seconds: i64) -> String {

pub fn download_speed_format(download_speed: &str) -> String {
if download_speed.len() > 0 {
return format!(" {}", download_speed);
return format!(" {}", download_speed);
}
download_speed.to_string()
}

pub fn upload_speed_format(upload_speed: &str) -> String {
if upload_speed.len() > 0 {
return format!(" {}", upload_speed);
return format!(" {}", upload_speed);
}
upload_speed.to_string()
}

0 comments on commit 6b681c2

Please sign in to comment.