fix warning plugintools

This commit is contained in:
alejandro 2023-07-12 10:15:13 +02:00
parent 7991c6fd54
commit c4444e9f9c
1 changed files with 2 additions and 1 deletions

View File

@ -2366,7 +2366,8 @@ sub snmp_data_switcher {
}
if ($data{type} eq "generic_data"){
($data{data} = $pure_data) =~ s/[^-\d]//gr;
$data{data} = $pure_data;
$data{data} =~ s/[^-\d]//g;
}
return \%data;