-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk Space readout reporting wrong disk size #325
Comments
I also see wrong information but it's much lower than the expected value on my side. I'd love to know if @Rolv-Apneseth could pursue his ideas in #286, the feature discussed in that ticket is really essential for the disk usage readout. |
Hey! Been a while but yes I'd be happy to look into it. I did go off on a dev branch on my fork for my own personal use but I'll have a go at making a PR when I get some time |
Wonderful, thanks for chiming in! |
In relation to this issue, I have no idea where such a wildly inaccurate value is coming from, though the NetBSD code for reading used/total bytes does seem to differ a bit from the *nix code. Just as a side note, |
Believe me, I know the difference between SI and other widely accepted units but, this is seriously wrong. I have a 365 Gb SSD being reported as 3.4 Tb
and perhaps man df(1) |
I assumed you did yes, sorry, was just mentioning in case someone searches this issue in the future for differences which might be accounted for by the units. Didn't realise that |
I think I know what's going on. Rust's I'm really disappointed that I didn't catch this discrepancy before porting the code. I suppose this is why @0323pin is getting "garbage" output in his disk space readout. Footnotes |
That's because Note: other OSs might still use statvfs is supported, I've added this to |
Alright, I'll write a working port this time. |
Describe the bug
Disk Space readout reporting wrong disk size.
To Reproduce
Config
macchina
to displayDiskSpace
.Expected behavior
Should report the correct values.
Screenshots
![2024-09-12-064734_722x381_scrot](https://private-user-images.githubusercontent.com/90570748/366723928-91841b53-e1db-452d-9fcb-9ef083333816.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMDkzMjUsIm5iZiI6MTczOTMwOTAyNSwicGF0aCI6Ii85MDU3MDc0OC8zNjY3MjM5MjgtOTE4NDFiNTMtZTFkYi00NTJkLTlmY2ItOWVmMDgzMzMzODE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDIxMjM0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEzNTljNDg3N2QwY2I4ZGVhNmQ1ZWU1NjdiZDQxNGU3MDczNDhjMjc4NWE1MzEyNDYwZDZiOGM5NzAyYmUyYTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oz9w5lViixuZlstP4Vd9zsl3a8gmwXZ_3FgoXS-xzpc)
Output of
df -h
:macchina --doctor
outputSystem Information
The text was updated successfully, but these errors were encountered: