apcups plugin: Fix reporting of the `load percent' data.
authorFlorian Forster <octo@huhu.verplant.org>
Thu, 13 Sep 2007 07:56:04 +0000 (09:56 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 13 Sep 2007 07:56:04 +0000 (09:56 +0200)
ChangeLog
src/apcups.c

index 0a0b193..a4f3fc5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+yyyy-mm-dd, Version 4.0.9
+       * apcups plugin: Fix reporting of the `load percent' data.
+
 2007-09-12, Version 4.0.8
        * collectd: The `sstrerror' function was improved to work correctly
          with the broken GNU version of `strerror_r'.
index a4aa34d..6391eb0 100644 (file)
@@ -391,7 +391,7 @@ static void apc_submit (struct apc_detail_s *apcups_detail)
        apc_submit_generic ("voltage",    "output",  apcups_detail->outputv);
        apc_submit_generic ("voltage",    "battery", apcups_detail->battv);
        apc_submit_generic ("charge",     "",        apcups_detail->bcharge);
-       apc_submit_generic ("percent",    "charge",  apcups_detail->loadpct);
+       apc_submit_generic ("percent",    "load",    apcups_detail->loadpct);
        apc_submit_generic ("timeleft",   "",        apcups_detail->timeleft);
        apc_submit_generic ("temperature", "",       apcups_detail->itemp);
        apc_submit_generic ("frequency",  "input",   apcups_detail->linefreq);