contrib/docker/: Separate CMD/ENTRYPOINT.
[collectd.git] / contrib / collectd_network.py
index 9c1e9fb..809f19d 100644 (file)
@@ -81,7 +81,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