Fix #11: Power limit Apply should check exit code

parent cda07b10
......@@ -4,6 +4,7 @@ Released: 2019-02-16
* Using NV-CONTROL instead of NVML, when possible, to provide better
compatibility with older cards
* Fix #11: Power limit Apply should check exit code
Version 0.11.0
==============
......
......@@ -33,6 +33,7 @@
<li>Using NV-CONTROL instead of NVML, when possible, to provide better compatibility with older
cards
</li>
<li>Fix #11: Power limit Apply should check exit code</li>
</ul>
</description>
</release>
......
......@@ -223,7 +223,7 @@ class NvidiaRepository:
str(gpu_index),
'-pl',
str(limit)]
result = run_and_get_stdout(cmd, ['xargs'])
result = run_and_get_stdout(cmd)
LOG.info("Exit code: %d. %s", result[0], result[1])
return result[0] == 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment