lm_sensors/lm_sensors-3.0.0-sensord.patch
2007-12-13 14:09:18 +00:00

14 lines
728 B
Diff

--- lm-sensors-3.0.0/prog/sensord/rrd.c (revision 4849)
+++ lm-sensors-3.0.0/prog/sensord/rrd.c (revision 5069)
@@ -157,8 +157,8 @@
for (index0 = 0; (ret == 0) && (num < MAX_RRD_SENSORS) && features[index0].format; ++ index0) {
const FeatureDescriptor *feature = features + index0;
- const char *rawLabel = features->feature->name;
+ const char *rawLabel = feature->feature->name;
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);
ret = -1;