tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1401270 - /tomcat/sandbox/trunk-resources/java/org/apache/catalina/webresources/Cache.java
Date Tue, 23 Oct 2012 12:24:05 GMT
Author: markt
Date: Tue Oct 23 12:24:04 2012
New Revision: 1401270

URL: http://svn.apache.org/viewvc?rev=1401270&view=rev
Log:
Fix test
Fix typos

Modified:
    tomcat/sandbox/trunk-resources/java/org/apache/catalina/webresources/Cache.java

Modified: tomcat/sandbox/trunk-resources/java/org/apache/catalina/webresources/Cache.java
URL: http://svn.apache.org/viewvc/tomcat/sandbox/trunk-resources/java/org/apache/catalina/webresources/Cache.java?rev=1401270&r1=1401269&r2=1401270&view=diff
==============================================================================
--- tomcat/sandbox/trunk-resources/java/org/apache/catalina/webresources/Cache.java (original)
+++ tomcat/sandbox/trunk-resources/java/org/apache/catalina/webresources/Cache.java Tue Oct
23 12:24:04 2012
@@ -128,7 +128,7 @@ public class Cache {
                 maxSize * (100 - TARGET_FREE_PERCENT_BACKGROUND) / 100;
         long newSize = evict(targetSize, iter);
 
-        if (targetSize > newSize) {
+        if (newSize > targetSize) {
             log.info(sm.getString("cache.backgroundEvictFail",
                     Long.valueOf(TARGET_FREE_PERCENT_BACKGROUND),
                     root.getContext().getName(),
@@ -179,12 +179,12 @@ public class Cache {
     }
 
     public long getMaxSize() {
-        // Internally bytes, externally kiobytes
+        // Internally bytes, externally kilobytes
         return maxSize / 1024;
     }
 
     public void setMaxSize(long maxSize) {
-        // Internally bytes, externally kiobytes
+        // Internally bytes, externally kilobytes
         this.maxSize = maxSize * 1024;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message