Disallow health less than 0

This commit is contained in:
2023-02-15 16:49:12 -05:00
parent 15ff729f83
commit 1093ca6264
2 changed files with 6 additions and 0 deletions

View File

@ -366,6 +366,9 @@ class MonitoringInstance(object):
if result is not None:
total_health -= result.health_delta
if total_health < 0:
total_health = 0
if total_health > 90:
health_colour = self.logger.fmt_green
elif total_health > 50: