Skip to content

Commit cbfed83

Browse files
authored
15524 round iprange utilization (#15734)
1 parent 3cbade5 commit cbfed83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/ipam/models/ip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def utilization(self):
692692
ip.address.ip for ip in self.get_child_ips()
693693
]).size
694694

695-
return int(float(child_count) / self.size * 100)
695+
return min(float(child_count) / self.size * 100, 100)
696696

697697

698698
class IPAddress(PrimaryModel):

0 commit comments

Comments
 (0)