[collectd] [PATCH] Python Write Callback Obtains Values Properly
Gregory Szorc
gregory.szorc at gmail.com
Tue Mar 1 00:45:07 CET 2011
Attached is a patch against branch collectd-4.10 that fixes the Python write
callback function to use the appropriate data_set_t member when converting
the value_list_t to a PyList.
Previously, when iterating through values in a value_list_t, it always
compared the 0th (instead of nth) ds element of the data_set_t to determine
how to convert the value. In other words, Python write callbacks were
receiving bad data unless every data-source was of the same ds-type (e.g.
GAUGE).
Gregory Szorc
gregory.szorc at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20110228/ea55d6b7/attachment.htm>
More information about the collectd
mailing list