@cryptotaxi247 / netdata-1 / commits / 992a5afb7

spigotmc fix UnicodeDecodeError (#5598)

<!-- Describe the change in summary section, including rationale and degin decisions. Include "Fixes #nnn" if you are fixing an existing issue. In "Component Name" section write which component is changed in this PR. This will help us review your PR quicker. If you have more information you want to add, write them in "Additional Information" section. This is usually used to help others understand your motivation behind this change. A step-by-step reproduction of the problem is helpful if there is no related issue. --> ##### Summary Fix [UnicodeDecodeError](https://github.com/netdata/netdata/pull/5507#issuecomment-471344661) ##### Component Name [`collectors/python.d.plugin/spigotmc`](https://github.com/netdata/netdata/tree/master/collectors/python.d.plugin/spigotmc) ##### Additional Information

Ilya Mashchenko committed Mar 11, 2019 at 00:26 UTC 992a5afb71be9af6e73c88dad7f6e8faf281bf98
1 file changed -3
collectors/python.d.plugin/spigotmc/spigotmc.chart.py
-3
@@ -116,7 +116,6 @@ class Service(SimpleService):
116
117 try:
118 raw = self.console.command(COMMAND_TPS)
119 - self.debug("'{0}' command output : {1}".format(COMMAND_TPS, raw))
119 match = _TPS_REGEX.match(raw)
120 if match:
121 data['tps1'] = int(float(match.group(1)) * PRECISION)
@@ -135,11 +134,9 @@ class Service(SimpleService):
134
135 try:
136 raw = self.console.command(COMMAND_LIST)
138 - self.debug("'{0}' command output : {1}".format(COMMAND_LIST, raw))
137 match = _LIST_REGEX.search(raw)
138 if not match:
139 raw = self.console.command(COMMAND_ONLINE)
142 - self.debug("'{0}' command output : {1}".format(COMMAND_ONLINE, raw))
140 match = _LIST_REGEX.search(raw)
141 if match:
142 data['users'] = int(match.group(1))