summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06a4718)
raw | patch | inline | side by side (parent: 06a4718)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 22 Jan 2007 21:35:55 +0000 (22:35 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 22 Jan 2007 21:35:55 +0000 (22:35 +0100) |
src/sensors.c | patch | blob | history |
diff --git a/src/sensors.c b/src/sensors.c
index 45e09905ceb47bf415c6e2e0b698749412731f07..862605a832ffcb7d8216f402fd0aeba44691ad5f 100644 (file)
--- a/src/sensors.c
+++ b/src/sensors.c
DBG ("Adding feature: %s-%s-%s",
chip->prefix,
- sensor_type_prefix[known_features[i].type],
+ sensor_to_type[known_features[i].type],
data->name);
if ((new_feature = (featurelist_t *) malloc (sizeof (featurelist_t))) == NULL)
{
featurelist_t *feature;
double value;
- char chip_fullprefix[512];
char plugin_instance[DATA_MAX_NAME_LEN];
char type_instance[DATA_MAX_NAME_LEN];
strncpy (type_instance, feature->data->name, DATA_MAX_NAME_LEN);
sensors_submit (plugin_instance,
- sensor_to_type[feature->type]
+ sensor_to_type[feature->type],
type_instance,
value);
} /* for feature = first_feature .. NULL */
+
+ return (0);
} /* int sensors_read */
#endif /* SENSORS_HAVE_READ */