author | Gregory Szorc <gregory.szorc@gmail.com> | |
Sat, 5 Mar 2011 06:25:45 +0000 (22:25 -0800) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 11 Mar 2011 22:03:32 +0000 (23:03 +0100) | ||
commit | 27cd1bfc12b4c3c81ccd2d3f2cc1f6ef5028a94f | |
tree | 21e6c2c215588ed75425a9b3c2b1eb1389dc3231 | tree | snapshot |
parent | 77f4a7f72ac4db1a7cb6b4da612211f2fdd93bfb | commit | diff |
dispatch proper values in Python write plugin
Fixes the Python write callback so the appropriate value is dispatched to
Python. Previously, the code only looked at the first element of a data set
to determine which value type (GAUGE, COUNTER, etc) to dispatch. If your data
set consisted of multiple values of different types, then the Python write
plugin was receiving bad values for the elements at position n > 0 whose type
was not the same as that at position 0.
Fixes the Python write callback so the appropriate value is dispatched to
Python. Previously, the code only looked at the first element of a data set
to determine which value type (GAUGE, COUNTER, etc) to dispatch. If your data
set consisted of multiple values of different types, then the Python write
plugin was receiving bad values for the elements at position n > 0 whose type
was not the same as that at position 0.
src/python.c | diff | blob | history |