Skip to content

Commit

Permalink
fix: display total files in table
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanaden committed Jun 21, 2024
1 parent dcec6fc commit 1cb8b7c
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -37,7 +37,6 @@ impl BottomStats {
impl Component for BottomStats {
fn render(&mut self, f: &mut Frame, rect: Rect) {
if let Some(stats) = &*self.stats.lock().unwrap() {
let all = stats.torrent_count;
let download = bytes_to_human_format(stats.download_speed);
let upload = bytes_to_human_format(stats.upload_speed);

Expand All @@ -50,6 +49,7 @@ impl Component for BottomStats {

let table_manager = &*self.table_manager.lock().unwrap();
let table = table_manager.table.borrow();
let all = table.get_len();
if let Some(current) = table.state.borrow().selected() {
let current_idx = current + 1;
text = format!(" {current_idx}/{all} | {text}");
Expand Down

0 comments on commit 1cb8b7c

Please sign in to comment.