[tor-commits] [metrics-web/master] Try harder to avoid concurrent runs.
karsten at torproject.org
karsten at torproject.org
Tue Apr 29 08:11:23 UTC 2014
commit 075f984904e9addd9d466f06fc5466bfc1f0b275
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Tue Apr 29 10:10:52 2014 +0200
Try harder to avoid concurrent runs.
---
modules/legacy/src/org/torproject/ernie/cron/LockFile.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/legacy/src/org/torproject/ernie/cron/LockFile.java b/modules/legacy/src/org/torproject/ernie/cron/LockFile.java
index 4de8da0..1a18504 100644
--- a/modules/legacy/src/org/torproject/ernie/cron/LockFile.java
+++ b/modules/legacy/src/org/torproject/ernie/cron/LockFile.java
@@ -27,7 +27,8 @@ public class LockFile {
BufferedReader br = new BufferedReader(new FileReader("lock"));
long runStarted = Long.parseLong(br.readLine());
br.close();
- if (System.currentTimeMillis() - runStarted < 55L * 60L * 1000L) {
+ if (System.currentTimeMillis() - runStarted <
+ 23L * 60L * 60L * 1000L) {
return false;
}
}
More information about the tor-commits
mailing list