2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-29 13:28:01 +00:00

sensord: Fix rrd support (#2276).

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5069 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare 2007-12-11 13:14:39 +00:00
parent 67218f03c3
commit 4f8196934c
2 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ SVN
pwmconfig: Really hide errors on sysfs writes pwmconfig: Really hide errors on sysfs writes
Deal gracefully with read-only pwm_enable files Deal gracefully with read-only pwm_enable files
Warn about outputs found in automatic mode Warn about outputs found in automatic mode
sensord: Fix rrd support (#2276)
sensors-detect: Drop PCA9540 detection sensors-detect: Drop PCA9540 detection
3.0.0 (2007-11-24) 3.0.0 (2007-11-24)

View File

@ -156,10 +156,10 @@ applyToFeatures
for (index0 = 0; (ret == 0) && (num < MAX_RRD_SENSORS) && features[index0].format; ++ index0) { for (index0 = 0; (ret == 0) && (num < MAX_RRD_SENSORS) && features[index0].format; ++ index0) {
const FeatureDescriptor *feature = features + index0; const FeatureDescriptor *feature = features + index0;
const char *rawLabel = features->feature->name; const char *rawLabel = feature->feature->name;
char *label = NULL; char *label = NULL;
if (!(label = sensors_get_label (chip, features->feature))) { if (!(label = sensors_get_label (chip, feature->feature))) {
sensorLog (LOG_ERR, "Error getting sensor label: %s/%s", chip->prefix, rawLabel); sensorLog (LOG_ERR, "Error getting sensor label: %s/%s", chip->prefix, rawLabel);
ret = -1; ret = -1;
} else { } else {