Skip to content
Snippets Groups Projects
Commit ae18176b authored by root's avatar root
Browse files

Removed _name from check_gpu perfdata

parent 39487d93
Branches master
No related tags found
No related merge requests found
...@@ -106,6 +106,9 @@ def main(): ...@@ -106,6 +106,9 @@ def main():
OUTPUT_TEXT += "Power Draw {0}/{1}W ".format(gpu['power.draw'], gpu['power.limit']) OUTPUT_TEXT += "Power Draw {0}/{1}W ".format(gpu['power.draw'], gpu['power.limit'])
for perf in gpu: for perf in gpu:
# InfluxDB doesn't like strings
if perf == "name":
continue
# Ignore empty (or missing) values # Ignore empty (or missing) values
if gpu[perf]: if gpu[perf]:
PERFDATA += "{0}_{1}={2} ".format(gpuIdx, perf, gpu[perf]) PERFDATA += "{0}_{1}={2} ".format(gpuIdx, perf, gpu[perf])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment