summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 258c926)
raw | patch | inline | side by side (parent: 258c926)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 15 Sep 2007 08:58:53 +0000 (10:58 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 15 Sep 2007 08:58:53 +0000 (10:58 +0200) |
src/apcups.c | patch | blob | history |
diff --git a/src/apcups.c b/src/apcups.c
index cd64426afa01e42125f3b210b7e39dc40f991c12..84ef94e6b9e22976d42b8fef6d820ad6e592944d 100644 (file)
--- a/src/apcups.c
+++ b/src/apcups.c
apc_submit_generic ("apcups_voltage", "output", apcups_detail->outputv);
apc_submit_generic ("apcups_voltage", "battery", apcups_detail->battv);
apc_submit_generic ("apcups_charge", "-", apcups_detail->bcharge);
+ /* `apcups_charge_pct' actually is the wrong name, but we keep it that
+ * way for backwards compatibility. */
apc_submit_generic ("apcups_charge_pct", "-", apcups_detail->loadpct);
apc_submit_generic ("apcups_timeleft", "-", apcups_detail->timeleft);
apc_submit_generic ("apcups_temp", "-", apcups_detail->itemp);
plugin_register (MODULE_NAME, apcups_init, apcups_read, NULL);
plugin_register ("apcups_voltage", NULL, NULL, apc_write_voltage);
plugin_register ("apcups_charge", NULL, NULL, apc_write_charge);
+ /* `apcups_charge_pct' actually is the wrong name, but we keep it that
+ * way for backwards compatibility. */
plugin_register ("apcups_charge_pct", NULL, NULL, apc_write_percent);
plugin_register ("apcups_timeleft", NULL, NULL, apc_write_timeleft);
plugin_register ("apcups_temp", NULL, NULL, apc_write_temperature);