mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 05:21:55 -06:00
17306 fix vlan group utilization
This commit is contained in:
parent
00d8eb40fc
commit
a9a926cc72
@ -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