diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 18:29:58 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-24 11:45:16 +0200 |
commit | c05f4317b299f1ebaff4955339f6d9ce44e9891b (patch) | |
tree | 7166333fb49aaafc04d5f80a5e500dc3e6d047f0 /src/download/mod.rs | |
parent | feat(downloader): Display the sizes, when waiting for a cache size reduction (diff) | |
download | yt-c05f4317b299f1ebaff4955339f6d9ce44e9891b.tar.gz yt-c05f4317b299f1ebaff4955339f6d9ce44e9891b.zip |
feat(status): Also show the cache usage
Diffstat (limited to '')
-rw-r--r-- | src/download/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/download/mod.rs b/src/download/mod.rs index 4aee136..ad807f6 100644 --- a/src/download/mod.rs +++ b/src/download/mod.rs @@ -134,7 +134,7 @@ impl Downloader { Ok(()) } - async fn get_current_cache_allocation(app: &App) -> Result<u64> { + pub async fn get_current_cache_allocation(app: &App) -> Result<u64> { fn dir_size(mut dir: fs::ReadDir) -> BoxFuture<'static, Result<u64>> { async move { let mut acc = 0; |