From: Florian Forster Date: Thu, 13 Sep 2007 07:56:04 +0000 (+0200) Subject: apcups plugin: Fix reporting of the `load percent' data. X-Git-Tag: collectd-4.0.9~6^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6e84354ee29495e07bce5884fa4c7f15cd5b7d4e;p=collectd.git apcups plugin: Fix reporting of the `load percent' data. --- diff --git a/ChangeLog b/ChangeLog index 0a0b1935..a4f3fc5b 100644 --- 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'. diff --git a/src/apcups.c b/src/apcups.c index a4aa34df..6391eb02 100644 --- a/src/apcups.c +++ b/src/apcups.c @@ -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);