-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bad quota calculation #63
Comments
@acsfer Thank you for reporting this issue. Could you please add the Nextcloud and Userexport Versions you used? The calculation is pretty simple and can be found in the
It sums up the provided API data points for all users using a foreach loop and a simple logic to deal with unlimited quota.
Correct, this represents the total quota limit for all users. This value can be quite high in many setups and differ a lot from available disk space or factual usage.
This value is also depending on the sum of the provided API responses for each user. Will investigate further how Nextcloud calculates these values. |
IMHO, this should be :
|
I probably found the issue regarding the wrong display of "free" quota. If users have unlimited quota set, the reported free quota seems to equal free disk space and is added to the free quota count for each of these users (can't tell for sure because my test setup is on shared hosting and this value isn't available to Nextcloud in this environment). The solution should be to ignore free quota values in the calculation for users who are set to unlimited quota (or simply do not rely on the API response for free quota at all and do the basic math as proposed above). @acsfer: |
All users have a fixed quota of 20Gb, set by LDAP. |
Postponing this until #61 is solved to be able to debug this on a "clean" userlist. |
The text was updated successfully, but these errors were encountered: