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

Florian Forster octo at verplant.org
Mon Jul 14 12:04:58 CEST 2008


 src/snmp.c |   31 ++++++++++++++++++++++++++++++-
 1 files changed, 30 insertions(+), 1 deletions(-)

New commits:
commit 8508efd140d64efc676237f6ec9792c65d108aac
Author: Florian Forster <octo at noris.net>
Date:   Mon Jul 14 11:49:06 2008 +0200

    snmp plugin: Parse strings according to the data source type.
    
    Some broken SNMP implementations returns numbers as a string, e. g. a
    temperature could would be returned as "19.2 C". This change uses the
    data source type, i. e. `counter' or `gauge' to convert that string into
    an integer or a floating point number using strtoll or strtod. In case
    of an error (string-pointer is NULL or no conversion could take place)
    either zero or NAN is returned.




More information about the collectd-changes mailing list