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