From 598c473613073460ece39d72c19d463b95a0b5f0 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Fri, 3 Nov 2023 14:30:41 +0100
Subject: [PATCH] fix status line for single unit

---
 check_systemdunit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check_systemdunit b/check_systemdunit
index aeb35b1..5436089 100755
--- a/check_systemdunit
+++ b/check_systemdunit
@@ -153,7 +153,7 @@ if [ $_iActive -eq 0 ]; then
   ph.setStatus critical
 else
   typeset -i _iInstances; _iInstances=$( grep -c "Loaded: " <<< "${_data}" )
-  if [ $_iInstances -gt 0 ]; then
+  if [ $_iInstances -gt 1 ]; then
 
     _status="$_iActive of $_iInstances ${_unit} units are active"
     _out="$_data"
-- 
GitLab