Skip to content
Discussion options

You must be logged in to vote

Can you be more specific about your problem? Please show an example of what you see, and what you expected to see instead.

The code is all still there in v3.4.3:

./netbox/utilities/templatetags/helpers.py:def humanize_megabytes(mb):
./netbox/templates/virtualization/virtualmachine.html:                                {{ object.memory|humanize_megabytes }}
./netbox/templates/virtualization/cluster.html:                          {{ memory_sum|humanize_megabytes }}

The logic is that you always enter the VM RAM size in MiB, but:

  • If you store a size which is a multiple of 1024, it is divided by 1024 and displayed as "GB" (sic - officially should be "GiB")
  • If you store a size which is a multi…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@szollin
Comment options

@candlerb
Comment options

@szollin
Comment options

@candlerb
Comment options

@szollin
Comment options

Answer selected by szollin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants