Skip to content
Snippets Groups Projects

fix status line for single unit

Merged Hahn Axel (hahn) requested to merge 6784-detect-multiple-systemd-instances into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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"
Loading