[Spambayes-checkins] spambayes/contrib tte.py,1.15,1.16

Skip Montanaro montanaro at users.sourceforge.net
Tue Apr 19 13:15:15 CEST 2005


Update of /cvsroot/spambayes/spambayes/contrib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16030

Modified Files:
	tte.py 
Log Message:
Include time to create & reverse mailbox in accounting for each round


Index: tte.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/contrib/tte.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** tte.py	1 Jan 2005 17:46:18 -0000	1.15
--- tte.py	19 Apr 2005 11:15:12 -0000	1.16
***************
*** 104,107 ****
--- 104,112 ----
  
      while round < maxrounds and (hmisses or smisses or round == 0):
+         round += 1
+         if verbose:
+             print >> sys.stderr, "*** round", round, "***"
+ 
+         start = datetime.datetime.now()
          hambone = mboxutils.getmbox(hambox)
          spamcan = mboxutils.getmbox(spambox)
***************
*** 109,119 ****
              hambone = reversed(list(hambone))
              spamcan = reversed(list(spamcan))
-         round += 1
- 
-         if verbose:
-             print >> sys.stderr, "*** round", round, "***"
  
          hmisses = smisses = nmsgs = 0
-         start = datetime.datetime.now()
          try:
              while not maxmsgs or nmsgs < maxmsgs:
--- 114,119 ----



More information about the Spambayes-checkins mailing list