diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-04-03 09:53:39 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-04-03 09:53:39 -0400 |
commit | 771a8b86133be492620a439fe9cabc2dbd80dc33 (patch) | |
tree | 8aadd4e518d4f2135244a14bff6a5cf093990159 /src/run.rs | |
parent | 77685885d5f8a8dfd1889245cf1bd6d783503620 (diff) |
updates
Diffstat (limited to 'src/run.rs')
-rw-r--r-- | src/run.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -51,7 +51,7 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io: match event { Event::IOWorkerProgress(p) => { - context.worker_msg = Some(format!("bytes copied {}", p)); + context.worker_msg = Some(format!("{} copied", format::file_size_to_string(p))); } Event::IOWorkerResult(res) => { match io_observer { @@ -118,5 +118,6 @@ pub fn run(config_t: JoshutoConfig, keymap_t: JoshutoCommandMapping) -> std::io: let mut view = TuiView::new(&context); backend.render(&mut view); } + Ok(()) } |