[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] More pinger work. Almost done!



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

Modified Files:
	test.py 
Log Message:
More pinger work.  Almost done!
- Make nearly all intervals configurable
- Change update logic to handle the time between the last connection
  attempt and the end of the day correctly.
- Actually delete ancient data as promised.
- Schedule pings based on server-held secret, to make ping timing less
  predictable.


Index: test.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/test.py,v
retrieving revision 1.215
retrieving revision 1.216
diff -u -d -r1.215 -r1.216
--- test.py	17 Dec 2004 20:40:03 -0000	1.215
+++ test.py	20 Dec 2004 04:16:20 -0000	1.216
@@ -7837,7 +7837,7 @@
             s = resumeLog()
         self.assertEndsWith(s, "Received ping with no record of its hash\n")
         log.gotPing("''"*10, now=t+161.1)
-        log.rotate(now=t+160)
+        log.rotate(t-15*24*60*60,t-15*24*60*60)
         log.heartbeat(t+200)
         log.calculateUptimes(t,t+200,now=t+200)
         ups = log.getUptimes(t,t+200)
@@ -7873,6 +7873,7 @@
         env = {}
         execfile(statusFile,env)
 
+        log.rotate(t+15*24*60*60,t+30*24*60*60)
         log.close()
 
 #----------------------------------------------------------------------