From b24fcc8ca44d017b449e1620141985e0299a96ba Mon Sep 17 00:00:00 2001 From: borg-0300 Date: Tue, 3 Jan 2006 11:08:45 +0000 Subject: [PATCH] oom git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1281 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaHTCache.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } }