X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fcollectd_network.py;h=dc6cdac4f997fecbaf2d68d5548195aa302dcfed;hb=f23f80cf88cbb97a088dfdcb0e70c668d7e5c7ff;hp=9af0fb008a72790e48562e7e6440c3bec8c6dd2a;hpb=400596160704146845940d7d9c4f794c0d2ddc03;p=collectd.git diff --git a/contrib/collectd_network.py b/contrib/collectd_network.py index 9af0fb00..dc6cdac4 100644 --- a/contrib/collectd_network.py +++ b/contrib/collectd_network.py @@ -76,7 +76,7 @@ def decode_network_values(ptype, plen, buf): 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