Skip to content

A treemap for finding and removing what fills your disk, for Omarchy. Rust + GPUI.

Rust

Merge pull request #53 from joshgosse/scan-speed

Tobias Lütkeb985693ff04d
diff --cc crates/disktree-core/src/scan.rs
index 5ff2531,abf8477..693253a
--- a/crates/disktree-core/src/scan.rs
+++ b/crates/disktree-core/src/scan.rs
@@@ -836,10 -838,10 +890,10 @@@ fn scan_on_pool
if progress.is_cancelled() {
return Err(crate::mft::cancelled());
}
- let node = finish_tree(node, &context.options);
+ let node = finish_tree(node, &context.options, pool);
// The reader counted every file on the volume; the tree may
// hold fewer.
- progress.settle(node.files, node.dirs, node.bytes);
+ progress.settle(node.files, u64::from(node.dirs), node.bytes);
return Ok(node);
}
// The reader gave up, or never started: the walk counts from nothing.