Compare commits

...

2 Commits

Author SHA1 Message Date
Arthur Hanson cfb9f855f8
Merge a970f655ac into ebe504c825 2024-04-22 16:39:50 +02:00
Arthur a970f655ac 15524 round iprange utilization 2024-04-16 11:21:43 -07:00
1 changed files with 1 additions and 1 deletions

View File

@ -692,7 +692,7 @@ class IPRange(PrimaryModel):
ip.address.ip for ip in self.get_child_ips()
]).size
return int(float(child_count) / self.size * 100)
return min(float(child_count) / self.size * 100, 100)
class IPAddress(PrimaryModel):