aboutsummaryrefslogtreecommitdiffstats
path: root/ticker.py
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2016-11-01 10:16:52 +0100
committerVolker Hoffmann <volker@cheleb.net>2016-11-01 10:16:52 +0100
commit7fe62738902de67ef9b2698a5e3d55eef5441f46 (patch)
tree68081f37c3f7aafcae515a93cff1742dd869f46b /ticker.py
parente41d81ff279691756151384c8e296257dc9372ab (diff)
fix: "type" is a built-in function, silly
Diffstat (limited to 'ticker.py')
-rw-r--r--ticker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ticker.py b/ticker.py
index 8d201bd..640b402 100644
--- a/ticker.py
+++ b/ticker.py
@@ -81,7 +81,8 @@ lines.append(line)
# This is not ideal. We should think of a way to record such failures.
# https://github.com/influxdata/influxdb/issues/4089
for gpu_node in [ 'vesta1', 'vesta2' ]:
- df, gpu_epoch, sucess = nvidia.read_gpu_stats(node=gpu_node, type='tesla')
+ df, gpu_epoch, sucess = nvidia.read_gpu_stats(node=gpu_node, \
+ gpu_type='tesla')
for irow, [ index, row ] in enumerate(df.iterrows()):
lines.append("gpu_temperature,node=%s,uuid=%s value=%.2f %i" % \
(row.node, row.uuid, row.gpu_temperature, gpu_epoch))