mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-29 12:50:43 +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:
1 parent
4d3a3f5245
commit
873a6ff023
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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