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

[minion-cvs] Include the current day when dumping ping results



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

Modified Files:
	Pinger.py 
Log Message:
Include the current day when dumping ping results

Index: Pinger.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/server/Pinger.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- Pinger.py	13 Dec 2004 00:56:48 -0000	1.17
+++ Pinger.py	13 Dec 2004 07:02:30 -0000	1.18
@@ -700,7 +700,7 @@
         print >>f, "\n# Map from server to list of (period-start, period-end, fractional uptime"
         print >>f, "SERVER_UPTIMES = {"
         cur.execute("SELECT start,end,name,uptime FROM uptimes "
-                    "WHERE start >= %s AND end <= %s"
+                    "WHERE start >= %s AND start <= %s"
                     "ORDER BY name, start", (since, now))
         lastServer = "---"
         for s,e,n,u in cur:
@@ -719,7 +719,7 @@
         print >>f, "SERVER_DAILY_PING_STATUS = {"
         cur.execute("SELECT servername,startAt,endAt,nSent,nReceived,"
                     "  latency,reliability FROM echolotOneHopResults "
-                    "WHERE startat >= %s AND endat <= %s"
+                    "WHERE startat >= %s AND startat <= %s"
                     "ORDER BY servername, startat", (since, now))
         lastServer = "---"
         for n,s,e,nS,nR,lat,r in cur: