--- a/viewer.py Tue May 05 23:53:29 2015 +0800
+++ b/viewer.py Wed May 06 00:02:17 2015 +0800
rows = self.conn.execute(
- 'SELECT mark, time FROM results WHERE node = ? AND cache = ?',
- msg.append('{}: {:.2g}s'.format(*row))
+ 'SELECT mark, time, cache FROM results WHERE node = ?',
+ for mark, time, cache in rows:
+ matchtimes.setdefault(mark, [None, None])
+ matchtimes[mark][1 if cache else 0] = time
+ msg.append('{mark}: {0:.2f}s/{1:.2f}s'.format(*matchtimes[mark], mark=mark))
line = line.replace(match, ' '.join(msg))