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

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;