mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
17306 fix vlan group utilization
This commit is contained in:
parent
6f7bf5baf4
commit
9013b27f06
@ -64,7 +64,7 @@ class VLANGroupQuerySet(RestrictedQuerySet):
|
||||
|
||||
return self.annotate(
|
||||
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