mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-05 00:35:35 +00:00
Fixed small bug, which caused the lowest confidence value to be
selected, instead of the highest (try again now, Adrian) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@257 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -605,7 +605,7 @@ sub add_to_chips_detected
|
||||
if ($detected_ref->[$j]->{driver} eq $datahash->{driver} and
|
||||
$detected_ref->[$j]->{description} eq $datahash->{description} and
|
||||
$detected_ref->[$j]->{address} eq $datahash->{address}) {
|
||||
if ($detected_ref->[$j]->{confidence} > $datahash->{confidence}) {
|
||||
if ($detected_ref->[$j]->{confidence} < $datahash->{confidence}) {
|
||||
push @$misdetected_ref, $detected_ref->[$j];
|
||||
splice @$detected_ref, $j, 1;
|
||||
push @$new_detected_ref, $datahash;
|
||||
|
Reference in New Issue
Block a user