]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Fix wrong input format to database
authorKarel Kočí <cynerd@email.cz>
Wed, 19 Aug 2015 10:06:04 +0000 (12:06 +0200)
committerKarel Kočí <cynerd@email.cz>
Wed, 19 Aug 2015 10:06:04 +0000 (12:06 +0200)
add_measure in boot script was called with list of lines instead of
single string.

scripts/boot.py

index 5c687a25547c75931cd64c10a2264ac67a493499..af39b300ebbfa7759f0d2c1198b0e401a780edb3 100644 (file)
@@ -24,4 +24,7 @@ def boot(config, to_database = True):
 
        if to_database:
                        dtb = database.database()
-                       dtb.add_measure(out, config.id, value)
+                       txt = ''
+                       for ln in out:
+                               txt += ln + '\n'
+                       dtb.add_measure(txt, config.id, value)