Wrong Gb division #10885

Closed
opened 2025-12-29 21:37:16 +01:00 by adam · 2 comments
Owner

Originally created by @erickvtorres on GitHub (Mar 13, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.12

Steps to Reproduce

  1. Create a virtual machine
  2. Set memory and disk sizes (MB)

Expected Behavior

Memory equal 4096Mb show as 4Gb
Disk size equal 102400Mb show as 100Gb

Observed Behavior

Both are displayed with size based on 1000 instead of 1024.

Image

Originally created by @erickvtorres on GitHub (Mar 13, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.5 ### Python Version 3.12 ### Steps to Reproduce 1. Create a virtual machine 2. Set memory and disk sizes (MB) ### Expected Behavior Memory equal 4096Mb show as 4Gb Disk size equal 102400Mb show as 100Gb ### Observed Behavior Both are displayed with size based on 1000 instead of 1024. ![Image](https://github.com/user-attachments/assets/f02ea92b-045f-48ef-8019-81b3f70bbfcc)
adam added the type: bugstatus: duplicate labels 2025-12-29 21:37:16 +01:00
adam closed this issue 2025-12-29 21:37:16 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 13, 2025):

This has already been discussed in other issues, and addressed in #17686. Please remember to search open and closed issues before submitting a new one.

@jeremystretch commented on GitHub (Mar 13, 2025): This has already been discussed in other issues, and addressed in #17686. Please remember to search open and closed issues before submitting a new one.
Author
Owner

@erickvtorres commented on GitHub (Mar 23, 2025):

Ok, 4.2.6 working for Hard Disk, Memory still wrong.
Thanks

Image

@erickvtorres commented on GitHub (Mar 23, 2025): Ok, 4.2.6 working for Hard Disk, Memory still wrong. Thanks ![Image](https://github.com/user-attachments/assets/5a08c830-ac8f-41f2-8ac5-36aef70b1cde)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10885