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

[or-cvs] [metrics-web/master 1/2] Fix graph cache.



Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Fri, 24 Sep 2010 11:20:04 +0200
Subject: Fix graph cache.
Commit: 2ee821a544373bf40509e5bd91c8ed729c3c7e98

---
 src/org/torproject/ernie/web/GraphController.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/ernie/web/GraphController.java b/src/org/torproject/ernie/web/GraphController.java
index 88570b3..1c54d47 100644
--- a/src/org/torproject/ernie/web/GraphController.java
+++ b/src/org/torproject/ernie/web/GraphController.java
@@ -131,7 +131,7 @@ public class GraphController {
         - this.maxCacheAge * 1000L;
     while (!graphsByLastModified.isEmpty()) {
       File oldestGraphInList = graphsByLastModified.remove(0);
-      if (oldestGraphInList.lastModified() >= cutOffTime ||
+      if (oldestGraphInList.lastModified() >= cutOffTime &&
           graphsByLastModified.size() < this.minCacheSize) {
         break;
       }
-- 
1.7.1