diff options
author | Karel Kočí <cynerd@email.cz> | 2015-08-11 19:43:30 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-08-13 10:09:57 +0200 |
commit | 78e08ef8cd15a60f19b15a9b5f1dfcdf57767721 (patch) | |
tree | 813795ce35301950252304ca16ce0067896ea759 /scripts | |
parent | b88557fa9e30b57e616635e3037ea5b56f7d4d4f (diff) | |
download | linux-conf-perf-78e08ef8cd15a60f19b15a9b5f1dfcdf57767721.tar.gz linux-conf-perf-78e08ef8cd15a60f19b15a9b5f1dfcdf57767721.tar.bz2 linux-conf-perf-78e08ef8cd15a60f19b15a9b5f1dfcdf57767721.zip |
Add measure tool desription to database
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/database.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/database.py b/scripts/database.py index 16556a8..eef118d 100644 --- a/scripts/database.py +++ b/scripts/database.py @@ -102,14 +102,14 @@ class database: def add_measure(self, mfile, conf_id, value = None): "Add measurement." ps = self.db.prepare("""INSERT INTO measure - (conf, mfile, value, mtime, toolgit, linuxgit) + (conf, mfile, value, mtime, toolgit, linuxgit, measurement) VALUES - ($1, $2, $3, $4, $5, $6); + ($1, $2, $3, $4, $5, $6, $7); """) gt = self.check_toolsgit() lgt = self.check_linuxgit() tm = datetime.datetime.now() - ps(conf_id, mfile, value, tm, gt, lgt) + ps(conf_id, mfile, value, tm, gt, lgt, conf.measure_identifier) def update_measure(self, measure_id, value): "Update measured value" |