[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Wed Sep 10 16:56:11 CEST 2014


 src/battery.c |  480 +++++++++++++++++++++++++++++++++++----------------------
 src/common.c  |   20 +++
 src/common.h  |    4 +
 3 files changed, 323 insertions(+), 181 deletions(-)

New commits:
commit 4f9fe05fc3fe5af805a51d2a60f426a407563b94
Author: Florian Forster <octo at collectd.org>
Date:   Wed Sep 10 16:53:51 2014 +0200

    battery plugin: Import code to read metrics from sysfs.
    
    This started as a simple import of Andy Parkins' sysfsbattery plugin into
    the battery plugin. Since the battery plugin is ancient and hasn't been
    touched in a while, this quickly escalated to a much bigger refactoring.
    Sorry!
    
    On the other hand, this fixes a couple of bugs. For example, all metrics
    were always dispatched with plugin_instance "0". This is correct for the
    majority of laptops, of course, but in theory this could be wrong.
    
    Also ACPI charging / discharging rate is reported as "current", when
    modern batteries actually report "power". The sysfs code does this
    correctly, ACPI still needs to be patched.
    
    Fixes: #725

commit a7041aa17af33f1ee9df726dddeafc4ded8e28be
Author: Florian Forster <octo at collectd.org>
Date:   Wed Sep 10 16:15:40 2014 +0200

    src/common.[ch]: Implement strtogauge().




More information about the collectd-changes mailing list