-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 Size conversion from GB to MB during update to 4.1.2 #17631
Comments
Simular issue as |
@AndreasSMoe can you please update your reproduction steps, you never state where this is occurring or what steps to see it appear. |
@AndreasSMoe This is not strictly a bug as it was designed that way, we went back and forth on dividing by 1000 or 1024. Your suggestion is good though for having it be a configurable parameter, can you please close this and bug and open up a Feature Request for this. |
Reported as a feature request |
Deployment Type
Self-hosted
NetBox Version
v4.1.2
Python Version
3.12
Steps to Reproduce
10000 MB is shown as 10GB, import with script is bytes/1MB, which gives 10.24GB in netbox (1024MB)
Tested to do (bytes/1GB)*1000 was shown correctly. But failes if disk is > 1TB
Is there a configuration setting to choose between divider of 1000 and 1024?
Expected Behavior
1024 MB shown as 1GB so that conversion from bytes to MB will be shown correctly
Observed Behavior
The value is shown as 50GB when 50000 MB is entered. Expected that 51200 MB would show as 50GB
The text was updated successfully, but these errors were encountered: