Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

oom

borg-0300b24fcc8ca44d
diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java
index 78e7b0c85..b1694d982 100644
--- a/source/de/anomic/plasma/plasmaHTCache.java
+++ b/source/de/anomic/plasma/plasmaHTCache.java
@@ -272,8 +272,9 @@ public final class plasmaHTCache {
private boolean deleteFile(File obj) {
if (obj.exists() && !filesInUse.contains(obj)) {
+ long size = obj.length();
if (obj.delete()) {
- this.currCacheSize -= obj.length();
+ this.currCacheSize -= size;
return true;
}
}