summaryrefslogtreecommitdiffstats
path: root/src/filesystems/mod.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-10-18 21:52:33 +0200
committerCanop <cano.petrole@gmail.com>2020-10-18 21:52:33 +0200
commit71c1323cf29c9e11438177ad26c4533fb4ebb609 (patch)
tree46ddec9d42544a45f92f9f598d31adb687856d77 /src/filesystems/mod.rs
parent6e2f61c7eb57707f98a1b0ef5bd7b36d3ced7df3 (diff)
:root_fs shows size/available infos of current filesystem on top
Diffstat (limited to 'src/filesystems/mod.rs')
-rw-r--r--src/filesystems/mod.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/filesystems/mod.rs b/src/filesystems/mod.rs
index e522621..2bd6981 100644
--- a/src/filesystems/mod.rs
+++ b/src/filesystems/mod.rs
@@ -1,11 +1,13 @@
-//! The whole module is only available on linux now
+//! The whole module is only available on unix now
mod filesystems_state;
mod mount_list;
+mod mount_space_display;
pub use {
filesystems_state::FilesystemState,
mount_list::MountList,
+ mount_space_display::MountSpaceDisplay,
};
use {
@@ -16,7 +18,12 @@ use {
};
lazy_static! {
- static ref MOUNTS: Mutex<MountList> = Mutex::new(MountList::new());
+ pub static ref MOUNTS: Mutex<MountList> = Mutex::new(MountList::new());
+}
+
+pub fn clear_cache() {
+ let mut mount_list = MOUNTS.lock().unwrap();
+ mount_list.clear_cache();
}
static SHARE_COLORS: &[Color] = &[