[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[minion-cvs] Fix bug in lockfile benchmark



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv26425/lib/mixminion

Modified Files:
	benchmark.py 
Log Message:
Fix bug in lockfile benchmark

Index: benchmark.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/benchmark.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- benchmark.py	7 Feb 2003 17:23:11 -0000	1.30
+++ benchmark.py	20 Feb 2003 16:50:42 -0000	1.31
@@ -614,7 +614,7 @@
     lockfile = Lockfile(os.path.join("dname"))
     t1 = time()
     for _ in xrange(2000):
-        lockfile.acquire(1)
+        lockfile.acquire(blocking=1)
         lockfile.release()
     t = time()-t1
     print "Lockfile: lock+unlock", timestr(t/2000.)