summaryrefslogtreecommitdiffstats
path: root/python.d/python_modules
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <ahferroin7@gmail.com>2018-06-05 15:08:29 -0400
committerAustin S. Hemmelgarn <ahferroin7@gmail.com>2018-06-11 07:51:49 -0400
commit6f2abd371fd6ee684fe5419e91284acd38ad4105 (patch)
treeb5a6791433cf4b638bdbafbd6c35b99985e27f47 /python.d/python_modules
parent37babce6355b303d813a9a4cd6eadbddfdcea873 (diff)
Fixed format string issue.
Diffstat (limited to 'python.d/python_modules')
-rw-r--r--python.d/python_modules/third_party/boinc_client.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python.d/python_modules/third_party/boinc_client.py b/python.d/python_modules/third_party/boinc_client.py
index 7707989197..04068dd91d 100644
--- a/python.d/python_modules/third_party/boinc_client.py
+++ b/python.d/python_modules/third_party/boinc_client.py
@@ -711,9 +711,7 @@ class BoincClient(object):
component = component.replace('cpu', 'run')
component = component.replace('net', 'network')
try:
- reply = self.rpc.call("<set_{0}_mode>"
- "<{1}/><duration>{2]</duration>"
- "</set_{0}_mode>".format(component, RunMode.name(mode).lower(), duration))
+ reply = self.rpc.call("<set_{0}_mode><{1}/>\n<duration>{2]</duration>\n</set_{0}_mode>".format(component, RunMode.name(mode).lower(), duration))
return (reply.tag == 'success')
except socket.error:
return False