projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make node_handler_fetch_data() stateless
[collectd.git]
/
contrib
/
collectd_network.py
diff --git
a/contrib/collectd_network.py
b/contrib/collectd_network.py
index
9c1e9fb
..
809f19d
100644
(file)
--- a/
contrib/collectd_network.py
+++ b/
contrib/collectd_network.py
@@
-81,7
+81,7
@@
def decode_network_values(ptype, plen, buf):
assert double.size == number.size
result = []
assert double.size == number.size
result = []
- for dstype in
buf[header.size+short.size:off
]:
+ for dstype in
[ord(x) for x in buf[header.size+short.size:off]
]:
if dstype == DS_TYPE_COUNTER:
result.append((dstype, number.unpack_from(buf, off)[0]))
off += valskip
if dstype == DS_TYPE_COUNTER:
result.append((dstype, number.unpack_from(buf, off)[0]))
off += valskip