summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 514a999)
raw | patch | inline | side by side (parent: 514a999)
author | Alexander Else <alexander.else@team.telstra.com> | |
Mon, 1 Jul 2013 06:17:12 +0000 (16:17 +1000) | ||
committer | Alexander Else <alexander.else@team.telstra.com> | |
Mon, 1 Jul 2013 06:17:12 +0000 (16:17 +1000) |
contrib/collectd_network.py | patch | blob | history |
index 9af0fb008a72790e48562e7e6440c3bec8c6dd2a..dc6cdac4f997fecbaf2d68d5548195aa302dcfed 100644 (file)
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