From 500045b9c7757d4bf0fea912f4acdef5ee47c6f6 Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 22 Mar 2010 06:38:06 +0000 Subject: [PATCH] Nicer about locks, I hope. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@436 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/GoodFETGlitch.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client/GoodFETGlitch.py b/client/GoodFETGlitch.py index 8e1f8a5..637b2d1 100644 --- a/client/GoodFETGlitch.py +++ b/client/GoodFETGlitch.py @@ -138,8 +138,15 @@ class GoodFETGlitch(GoodFET): #self.crunch(); count=0.0; total=1.0*len(times); - for t in times: - voltages=self.glitchvoltages(t); + + c=self.db.cursor(); + c.execute("select time,min,max from glitchrange where max-min>0;"); + rows=c.fetchall(); + for r in rows: + t=r[0]; + min=r[1]; + max=r[2]; + voltages=range(min,max,1); count=count+1.0; print "%02.02f Exploring %04i points in t=%04i." % (count/total,len(voltages),t); sys.stdout.flush(); -- 2.20.1