fix ping desc

This commit is contained in:
wh1te909 2020-07-12 07:14:49 +00:00
parent c8f9db28be
commit 9acb1335db
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class Check(models.Model):
if self.check_type == "diskspace":
return f"{self.get_check_type_display()}: Drive {self.disk} < {self.threshold}%"
elif self.check_type == "ping":
return f"{self.get_check_type_display()}: {self.ip}"
return f"{self.get_check_type_display()}: {self.name}"
elif self.check_type == "cpuload" or self.check_type == "memory":
return f"{self.get_check_type_display()} > {self.threshold}%"
elif self.check_type == "winsvc":