vgritsenko 2003/07/31 06:42:21
Modified: store/src/java/org/apache/excalibur/store/impl
StoreJanitorImpl.java
Log:
Set a minimum for an interval.
Revision Changes Path
1.11 +4 -1
avalon-excalibur/store/src/java/org/apache/excalibur/store/impl/StoreJanitorImpl.java
Index: StoreJanitorImpl.java
===================================================================
RCS file:
/home/cvs/avalon-excalibur/store/src/java/org/apache/excalibur/store/impl/StoreJanitorImpl.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- StoreJanitorImpl.java 31 Jul 2003 03:13:47 -0000 1.10
+++ StoreJanitorImpl.java 31 Jul 2003 13:42:20 -0000 1.11
@@ -90,6 +90,7 @@
private int minFreeMemory = -1;
private int maxHeapSize = -1;
private int threadInterval = -1;
+ private int minThreadInterval = 500;
private boolean adaptiveThreadInterval = false;
private int priority = -1;
private double fraction;
@@ -210,6 +211,8 @@
interval = minTimeToFill(maxRateOfChange) * 1000 / 2;
if (interval > this.threadInterval) {
interval = this.threadInterval;
+ } else if (interval < this.minThreadInterval) {
+ interval = this.minThreadInterval;
}
inUse = memoryInUse();
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]