From 47af48f309784920656763ef720c67e51af177e1 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 10 Jun 2021 04:27:18 +0200 Subject: [PATCH] Improved Uptime stat status feature. --- src/fr/devinsy/statoolinfos/uptime/UptimeStat.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/uptime/UptimeStat.java b/src/fr/devinsy/statoolinfos/uptime/UptimeStat.java index 650138c..57c423d 100644 --- a/src/fr/devinsy/statoolinfos/uptime/UptimeStat.java +++ b/src/fr/devinsy/statoolinfos/uptime/UptimeStat.java @@ -81,10 +81,14 @@ public class UptimeStat { result = UptimeStatus.WARNING; } - else + else if (this.okCount == 0) { result = UptimeStatus.ERROR; } + else + { + result = UptimeStatus.ALERT; + } } else {