Closed stsp closed 4 years ago
Seems that full_filespec is lower case, this little patch allows it to show free space (clamped at 2GB)
- getdfree(full_filespec[0]-'A'+1, &df);
+ getdfree(full_filespec[0]-'a'+1, &df);
Thanks, that's the correct fix.
For me it returns 1Gb though, not 2.
Yes, that's the same for me. On my system it's clamped at almost 2GB, but the display is 1GB
>>> 2147450880/1024/1024/1024
1.999969482421875
Is it the sign on the printf format (%15lli)
?
I rather think it's just truncation, not rounding.
Yep, should now be better.
See https://github.com/dosemu2/dosemu2/issues/1317#issuecomment-710700536