Author: dbkr
Date: 2006-05-06 15:16:44 +0000 (Sat, 06 May 2006)
New Revision: 8626

Modified:
   trunk/apps/fnmail/src/fnmail/MessageSender.java
   trunk/apps/fnmail/src/fnmail/SingleAccountWatcher.java
Log:
d'oh - get the sleep durations right.


Modified: trunk/apps/fnmail/src/fnmail/MessageSender.java
===================================================================
--- trunk/apps/fnmail/src/fnmail/MessageSender.java     2006-05-06 14:30:14 UTC 
(rev 8625)
+++ trunk/apps/fnmail/src/fnmail/MessageSender.java     2006-05-06 15:16:44 UTC 
(rev 8626)
@@ -84,7 +84,7 @@
                        }
                        // don't spin around the loop if nothing's
                        // going on
-                       long runtime = start - System.currentTimeMillis();
+                       long runtime = System.currentTimeMillis() - start;

                        if (MIN_RUN_TIME - runtime > 0) {
                                try {

Modified: trunk/apps/fnmail/src/fnmail/SingleAccountWatcher.java
===================================================================
--- trunk/apps/fnmail/src/fnmail/SingleAccountWatcher.java      2006-05-06 
14:30:14 UTC (rev 8625)
+++ trunk/apps/fnmail/src/fnmail/SingleAccountWatcher.java      2006-05-06 
15:16:44 UTC (rev 8626)
@@ -26,7 +26,7 @@

                        mf.fetch_from_all();

-                       long runtime = start - System.currentTimeMillis();
+                       long runtime = System.currentTimeMillis() - start;

                        if (MIN_POLL_DURATION - runtime > 0) {
                                try {


Reply via email to