mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 18:24:08 +02:00
filter snap
This commit is contained in:
parent
9c4a767c40
commit
379c3fbc3a
1 changed files with 1 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ impl Heim {
|
|||
let name = partition.mount_point().to_string_lossy().to_string();
|
||||
partition.usage().await.ok().map(|usage| (name, usage))
|
||||
})
|
||||
.filter(|(mount_point, _usage)| future::ready(!mount_point.contains("/snap/")))
|
||||
.map(|(mount_point, usage)| DiskUsage {
|
||||
name: mount_point,
|
||||
size: usage.total().get::<information::byte>(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue