mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
uucore: set meaningless FsUsage.ffree value to 0
Set the value of the `FsUsage.ffree` value to 0 on Windows, because even though it is meaningless, it should not exceed the `FsUsage.files` value so that client code can rely on the guarantee that `FsUsage.ffree <= FsUsage.files`.
This commit is contained in:
parent
1f7c08d87b
commit
44772a8dbb
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ impl FsUsage {
|
|||
// Total number of file nodes (inodes) on the file system.
|
||||
files: 0, // Not available on windows
|
||||
// Total number of free file nodes (inodes).
|
||||
ffree: 4096, // Meaningless on Windows
|
||||
ffree: 0, // Meaningless on Windows
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue