mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
Update sysinfo version to 0.26.7
This commit is contained in:
committed by
andy.boot
parent
b478534b22
commit
72b811c278
+1
-1
@@ -210,7 +210,7 @@ fn init_rayon() -> Result<(), ThreadPoolBuildError> {
|
||||
let large_stack = usize::pow(1024, 3);
|
||||
// Warning: Creating System is slow, takes ~ 100ms
|
||||
let s = System::new();
|
||||
let available = s.get_available_memory() * 1024;
|
||||
let available = s.available_memory();
|
||||
|
||||
if available > large_stack.try_into().unwrap() {
|
||||
// Larger stack size to handle cases with lots of nested directories
|
||||
|
||||
Reference in New Issue
Block a user