Fixed format string issue.
Austin S. Hemmelgarn committed
Jun 5, 2018 at 15:08 UTC
6f2abd371fd6ee684fe5419e91284acd38ad4105
1 file changed
+1
-3
python.d/python_modules/third_party/boinc_client.py
+1
-3
@@ -711,9 +711,7 @@ class BoincClient(object):
711
component = component.replace('cpu', 'run')
712
component = component.replace('net', 'network')
713
try:
714
- reply = self.rpc.call("<set_{0}_mode>"
715
- "<{1}/><duration>{2]</duration>"
716
- "</set_{0}_mode>".format(component, RunMode.name(mode).lower(), duration))
714
+ reply = self.rpc.call("<set_{0}_mode><{1}/>\n<duration>{2]</duration>\n</set_{0}_mode>".format(component, RunMode.name(mode).lower(), duration))
715
return (reply.tag == 'success')
716
except socket.error:
717
return False