mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
17306 fix vlan group utilization
This commit is contained in:
parent
4024f322c4
commit
822fa64a83
@ -64,7 +64,7 @@ class VLANGroupQuerySet(RestrictedQuerySet):
|
|||||||
|
|
||||||
return self.annotate(
|
return self.annotate(
|
||||||
vlan_count=count_related(VLAN, 'group'),
|
vlan_count=count_related(VLAN, 'group'),
|
||||||
utilization=Round(F('vlan_count') * 100 / F('_total_vlan_ids'), 2)
|
utilization=Round(F('vlan_count') * 100.0 / F('_total_vlan_ids'), 2)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user