Author: batosai
Date: 2008-08-30 20:34:55 +0000 (Sat, 30 Aug 2008)
New Revision: 22258

Modified:
   trunk/apps/WoT/src/plugins/WoT/OwnIdentity.java
Log:
Force insert once a week (bug #2510).
This will allow us to detect dead identities, later.

Modified: trunk/apps/WoT/src/plugins/WoT/OwnIdentity.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/OwnIdentity.java     2008-08-30 20:04:43 UTC 
(rev 22257)
+++ trunk/apps/WoT/src/plugins/WoT/OwnIdentity.java     2008-08-30 20:34:55 UTC 
(rev 22258)
@@ -144,7 +144,7 @@
         * @return Whether the identity has been updated since the last insert
         */
        public boolean needsInsert() {
-               return (lastChange.compareTo(lastInsert) > 0); 
+               return (lastChange.after(lastInsert) || (new Date().getTime() - 
lastInsert.getTime()) > 1000*60*60*24*7); 
        }

        /**


Reply via email to