Skip to content
Snippets Groups Projects
Commit cc17636d authored by Jan David Mol's avatar Jan David Mol
Browse files

Quick fix for syntax error

parent c4ef8763
No related branches found
No related tags found
No related merge requests found
...@@ -69,8 +69,7 @@ class CustomCollector(object): ...@@ -69,8 +69,7 @@ class CustomCollector(object):
self.policy = ArchiverPolicy(config) self.policy = ArchiverPolicy(config)
self.proxy_timeout = proxy_timeout self.proxy_timeout = proxy_timeout
@staticmethod def _to_metric(self, dev, attr_info, x, y, idx, value):
def _to_metric(dev, attr_info, x, y, idx, value):
""" Convert the given values to a (labels, value) pair, used to construct a Metric. """ """ Convert the given values to a (labels, value) pair, used to construct a Metric. """
if attr_info.data_type in [ArgType.DevShort, ArgType.DevLong, ArgType.DevUShort, ArgType.DevULong, ArgType.DevLong64, ArgType.DevULong64, ArgType.DevInt, ArgType.DevFloat, ArgType.DevDouble]: if attr_info.data_type in [ArgType.DevShort, ArgType.DevLong, ArgType.DevUShort, ArgType.DevULong, ArgType.DevLong64, ArgType.DevULong64, ArgType.DevInt, ArgType.DevFloat, ArgType.DevDouble]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment