diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-21 11:35:46 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2020-03-21 11:35:46 -0400 |
commit | e1998c81383a6929bff21a17ac08c16eea0e945a (patch) | |
tree | 51db2592f5fe8c3b23a9cf911f36fcae01325b5d /src/ui/widgets/tui_footer.rs | |
parent | 8fc59f0a0c3729d201f844738db5275035f59f2d (diff) |
format bytes into KB, MB, etc
Diffstat (limited to 'src/ui/widgets/tui_footer.rs')
-rw-r--r-- | src/ui/widgets/tui_footer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widgets/tui_footer.rs b/src/ui/widgets/tui_footer.rs index 072b143..e957590 100644 --- a/src/ui/widgets/tui_footer.rs +++ b/src/ui/widgets/tui_footer.rs @@ -31,7 +31,7 @@ impl<'a> Widget for TuiFooter<'a> { let mtime = format::mtime_to_string(mtime); let size = self.entry.metadata.len; - let size = format::file_size_to_string(size as f64); + let size = format::file_size_to_string(size); #[cfg(unix)] let mimetype = match self.entry.metadata.mimetype.as_ref() { |