]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
Potential fix of wrong input data format exception
authorKarel Kočí <cynerd@email.cz>
Mon, 21 Sep 2015 12:00:05 +0000 (14:00 +0200)
committerKarel Kočí <cynerd@email.cz>
Mon, 21 Sep 2015 12:04:47 +0000 (14:04 +0200)
scripts/boot.py

index 31328a1216160452d51a1fe079cc84625c254948..88da81786ec1436e302a7fb7575795faf2a26822 100644 (file)
@@ -38,5 +38,8 @@ def boot(config, to_database = True):
                        dtb = database.database()
                        txt = ''
                        for ln in out:
+                               for c in ln:
+                                       if c == '\x00':
+                                               c = ' '
                                txt += ln + '\n'
                        dtb.add_measure(txt, result, config.id, value)