This commit is contained in:
garnier-quentin 2020-01-20 15:14:30 +01:00
parent 2d00a8daad
commit 351e34ed00
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ sub manage_selection {
cpu_temperature => $result->{cpuTemperature}, cpu_temperature => $result->{cpuTemperature},
connected_users => $result->{totalConnectedUsers}, connected_users => $result->{totalConnectedUsers},
max_users => defined($result->{licenseUsers}) ? $result->{licenseUsers} : '', max_users => defined($result->{licenseUsers}) ? $result->{licenseUsers} : '',
connected_users_prct => defined($result->{licenseUsers}) ? $result->{totalConnectedUsers} * 100 / $result->{licenseUsers} : undef connected_users_prct => defined($result->{licenseUsers}) && $result->{licenseUsers} != 0 ? $result->{totalConnectedUsers} * 100 / $result->{licenseUsers} : undef
}; };
$result = $options{snmp}->map_instance(mapping => $mapping2, results => $snmp_result, instance => '0'); $result = $options{snmp}->map_instance(mapping => $mapping2, results => $snmp_result, instance => '0');