aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-08-19 11:50:27 +0200
committerKarel Kočí <cynerd@email.cz>2015-08-19 11:50:27 +0200
commit3e3bca8205f247d45c426fbcd2e58ee45ec4b853 (patch)
treeb62c5cac804dde773d157097e98fd001002335da
parent09601e907a8c1b0c01f30fa1abd0da353365b580 (diff)
downloadlinux-conf-perf-3e3bca8205f247d45c426fbcd2e58ee45ec4b853.tar.gz
linux-conf-perf-3e3bca8205f247d45c426fbcd2e58ee45ec4b853.tar.bz2
linux-conf-perf-3e3bca8205f247d45c426fbcd2e58ee45ec4b853.zip
Fix boot.py parse call
-rw-r--r--scripts/boot.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/boot.py b/scripts/boot.py
index aaaf174..5c687a2 100644
--- a/scripts/boot.py
+++ b/scripts/boot.py
@@ -16,9 +16,9 @@ def boot(config, to_database = True):
value = None
try:
- out = utils.callsubprocess('parse_command', conf.parse_command,
- conf.parse_output, True)
- value = float(out[0])
+ res = utils.callsubprocess('parse_command', conf.parse_command,
+ conf.parse_output, True, stdin = out)
+ value = float(res[0])
except Exception as e:
print("W: parse exception: " + e.__str__())