From 6e84354ee29495e07bce5884fa4c7f15cd5b7d4e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 13 Sep 2007 09:56:04 +0200 Subject: [PATCH] apcups plugin: Fix reporting of the `load percent' data. --- ChangeLog | 3 +++ src/apcups.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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); -- 2.11.0