fix(generic-snmp): little improvement on perfdata

This commit is contained in:
David Boucher 2025-03-08 21:21:50 +01:00
parent aa20a3232f
commit 3bc29e46c3

View File

@ -330,7 +330,7 @@ impl Command {
Some(d) => {
metrics.iter().for_each(|m| {
perfdata += format!(
" {}={}{};{};{};{};{}",
" '{}'={}{};{};{};{};{}",
m.name,
m.value,
d.uom,
@ -357,7 +357,7 @@ impl Command {
None => {
metrics.iter().for_each(|m| {
perfdata += format!(
" {}={};{};{}",
" '{}'={};{};{}",
m.name,
m.value,
match m.warning {