Changeset 4971
- Timestamp:
- 10/21/07 15:58:27 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
prog/detect/sensors-detect-stat.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/CHANGES
r4969 r4971 6 6 sensors-detect: Fix SMSC LPC47B357/M967 detection 7 7 Select the right driver for FSC chips 8 sensors-detect-stat.pl: Handle alternative chip lists 8 9 9 10 3.0.0-rc2 (2007-10-10) -
lm-sensors/branches/lm-sensors-3.0.0/prog/detect/sensors-detect-stat.pl
r2373 r4971 4 4 # Statistical analysis of sensors-detect i2c addresses scanner 5 5 # Part of the lm_sensors project 6 # Copyright (C) 2003-200 4Jean Delvare <khali@linux-fr.org>6 # Copyright (C) 2003-2007 Jean Delvare <khali@linux-fr.org> 7 7 # 8 8 # This program is free software; you can redistribute it and/or modify … … 21 21 22 22 use strict; 23 use vars qw(%histo $chips $file );23 use vars qw(%histo $chips $file $skip); 24 24 25 25 # Where is sensors-detect? … … 52 52 # Get the data. 53 53 open (SD, $file) || die; 54 $skip = 0; 54 55 while (<SD>) 55 56 { 57 # Some chips are handled differently depending on the kernel 58 # version, avoid counting them twice. 59 if (m/^\@chip_kern24_ids\s*=/ || m/^\@chip_oldfsc_ids\s*=/) { 60 $skip = 1; 61 next; 62 } 63 if ($skip && m/^\);$/) { 64 $skip = 0; 65 next; 66 } 67 next if $skip; 68 56 69 # The regular expression may seem a little bit complex, but we wouldn't 57 70 # want to exec malicious code.
