]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix boot.py parse call
authorKarel Kočí <cynerd@email.cz>
Wed, 19 Aug 2015 09:50:27 +0000 (11:50 +0200)
committerKarel Kočí <cynerd@email.cz>
Wed, 19 Aug 2015 09:50:27 +0000 (11:50 +0200)
scripts/boot.py

index aaaf1747c09169ac6b5125f8e2056bb623791646..5c687a25547c75931cd64c10a2264ac67a493499 100644 (file)
@@ -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__())