chore: make fmt

This commit is contained in:
Stéphane Lesimple
2026-04-08 21:03:57 +02:00
parent 60ea669e41
commit db84fc10de
2 changed files with 29 additions and 21 deletions

View File

@@ -344,4 +344,3 @@ if [ "$opt_runtime" = 0 ] && [ -z "$opt_kernel" ] && [ -z "$opt_config" ] && [ -
pr_warn "Option --no-runtime requires at least one of --kernel, --config, or --map"
exit 255
fi

View File

@@ -349,9 +349,18 @@ _emit_nrpe() {
_emit_prometheus() {
local numeric_status cpu_affected full_name esc_name
case "$3" in
OK) numeric_status=0 ; g_smc_ok_count=$((g_smc_ok_count + 1)) ;;
VULN) numeric_status=1 ; g_smc_vuln_count=$((g_smc_vuln_count + 1)) ;;
UNK) numeric_status=2 ; g_smc_unk_count=$((g_smc_unk_count + 1)) ;;
OK)
numeric_status=0
g_smc_ok_count=$((g_smc_ok_count + 1))
;;
VULN)
numeric_status=1
g_smc_vuln_count=$((g_smc_vuln_count + 1))
;;
UNK)
numeric_status=2
g_smc_unk_count=$((g_smc_unk_count + 1))
;;
*)
echo "$0: error: unknown status '$3' passed to _emit_prometheus()" >&2
exit 255