Fix #1811
This commit is contained in:
parent
2d00a8daad
commit
351e34ed00
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue