Skip to content
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

FreeSpaceOnDisk type should be int64 #53

Open
daye-liu opened this issue Feb 19, 2025 · 1 comment
Open

FreeSpaceOnDisk type should be int64 #53

daye-liu opened this issue Feb 19, 2025 · 1 comment

Comments

@daye-liu
Copy link

The error in the FreeSpaceOnDisk type within the ServerState struct of the MainData struct in the GetMainData function! By examining the qBittorrent source code, it was found that it is of type int64, but it was incorrectly defined as uint64 here, leading to the error!

Image Image Image
@zze0s
Copy link
Contributor

zze0s commented Feb 21, 2025

Hi! That didn't come up during our testing. One would assume disk size wouldn't go below 0, so we went with uint64.

Feel free to PR a fix 👍

@zze0s zze0s changed the title The error in the FreeSpaceOnDisk type within the ServerState struct of the MainData struct in the GetMainData function! FreeSpaceOnDisk should be int64 Feb 21, 2025
@zze0s zze0s changed the title FreeSpaceOnDisk should be int64 FreeSpaceOnDisk type should be int64 Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants