mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-08 17:06:05 +02:00
fix(generic-snmp): little improvement on perfdata
This commit is contained in:
parent
aa20a3232f
commit
3bc29e46c3
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user