summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc42e3e)
raw | patch | inline | side by side (parent: dc42e3e)
author | octo <octo> | |
Tue, 11 Apr 2006 19:26:22 +0000 (19:26 +0000) | ||
committer | octo <octo> | |
Tue, 11 Apr 2006 19:26:22 +0000 (19:26 +0000) |
src/apple_sensors.c | patch | blob | history |
diff --git a/src/apple_sensors.c b/src/apple_sensors.c
index 04a97cc0791e3fc65c0db2880bce28c6535da7b9..a8f92a548654aa110d25c6b0852f576adde8179c 100644 (file)
--- a/src/apple_sensors.c
+++ b/src/apple_sensors.c
static char *temperature_file = "apple_sensors/temperature-%s.rrd";
static char *fanspeed_file = "apple_sensors/fanspeed-%s.rrd";
-static char *voltage_file = "apple_sensors/temperature-%s.rrd";
static char *ds_def[] =
{
as_write (host, inst, val, fanspeed_file);
}
-static void voltage_write (char *host, char *inst, char *val)
-{
- as_write (host, inst, val, voltage_file);
-}
-
#if IOKIT_HAVE_READ
static void as_submit (char *type, char *inst, double value)
{
}
else if (strcmp (type, "voltage") == 0)
{
- value_double = ((double) value_int) / 65536.0;
- strncpy (type, "apple_voltage", 128);
+ /* Leave this to the battery plugin. */
+ continue;
}
else
{
plugin_register (MODULE_NAME, as_init, as_read, NULL);
plugin_register ("apple_temperature", NULL, NULL, temperature_write);
plugin_register ("apple_fanspeed", NULL, NULL, fanspeed_write);
- plugin_register ("apple_voltage", NULL, NULL, voltage_write);
}
#undef MODULE_NAME