mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-10 02:19:37 -06:00
* Created "convert_byte_size" method to convert the memory and disk size according to unit informed. Changed "get_extra_context" method from "ClusterView" to use the method above and convert all the disks and memories from VMs to normalize the units. * Changed decimal size for memory_sum and disk_sum * Added test for convert_byte_size. * Fixed * Addressed PR comments. Changed humanize_megabytes in helpers.py * Addressed PR comments. Changed humanize_megabytes in helpers.py * Linter issues for helpers.py * Changed humanize_megabytes * Changed humanize_megabytes * Changed humanize_megabytes * Added the title to display the value in MB when mouseover. * Addressed PR comment. * Addressed PR comment. * Rewrite sizing logic --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com> |
||
|---|---|---|
| .. | ||
| cluster | ||
| virtualmachine | ||
| cluster_add_devices.html | ||
| cluster.html | ||
| clustergroup.html | ||
| clustertype.html | ||
| virtualdisk.html | ||
| virtualmachine_list.html | ||
| virtualmachine.html | ||
| vminterface.html | ||