Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/100609


Change subject: Run the history clearere every day
......................................................................

Run the history clearere every day

Change-Id: I341f7d7ecf01bf1a0f83b33ddd21f73c93cb75ef
---
M wikipedia/src/main/java/org/wikimedia/wikipedia/history/HistoryRotateTask.java
1 file changed, 3 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia 
refs/changes/09/100609/1

diff --git 
a/wikipedia/src/main/java/org/wikimedia/wikipedia/history/HistoryRotateTask.java
 
b/wikipedia/src/main/java/org/wikimedia/wikipedia/history/HistoryRotateTask.java
index f28b1cc..fd872f0 100644
--- 
a/wikipedia/src/main/java/org/wikimedia/wikipedia/history/HistoryRotateTask.java
+++ 
b/wikipedia/src/main/java/org/wikimedia/wikipedia/history/HistoryRotateTask.java
@@ -8,7 +8,8 @@
 
 public class HistoryRotateTask extends RecurringTask {
     // Clear things older than 30 days
-    private static final long CLEAR_INTERVAL_MILLI =  30 * 24 * 60 * 60 * 1000;
+    private static final long RUN_INTERVAL_MILLI =  24 * 60 * 60 * 1000;
+    private static final long CLEAR_INTERVAL_MILLI = 30 * 24 * 60 * 60 * 1000;
 
     public HistoryRotateTask(Context context) {
         super(context);
@@ -16,7 +17,7 @@
 
     @Override
     protected boolean shouldRun(Date lastRun) {
-        return System.currentTimeMillis() - lastRun.getTime() >= 
CLEAR_INTERVAL_MILLI;
+        return System.currentTimeMillis() - lastRun.getTime() >= 
RUN_INTERVAL_MILLI;
     }
 
     @Override

-- 
To view, visit https://gerrit.wikimedia.org/r/100609
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I341f7d7ecf01bf1a0f83b33ddd21f73c93cb75ef
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to