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:
Frodo Looijaard committed 1999-02-19 20:23:29 +00:00
1 parent 4d3a3f5245
commit 873a6ff023
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;