Code

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 0a0b19359d6a1c7954d4fc6e528115d187b6124d..a4f3fc5b6a9030be39cbd2ac8ad7a354236e8477 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 a4aa34df7e29112a68070726bb0539a822ee7a60..6391eb02991b3d9f478dd662bf05a590bdf212ef 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);