From ca1ef9a07946ac28a4f0c206e0532f466e30f67e Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 14 Jan 2010 13:38:14 +0000 Subject: [PATCH] fix for http://forum.yacy-websuche.de/viewtopic.php?p=18584#p18584 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6584 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/net/yacy/kelondro/table/SplitTable.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/net/yacy/kelondro/table/SplitTable.java b/source/net/yacy/kelondro/table/SplitTable.java index 22162e1b9..f10b0a49a 100644 --- a/source/net/yacy/kelondro/table/SplitTable.java +++ b/source/net/yacy/kelondro/table/SplitTable.java @@ -150,7 +150,7 @@ public class SplitTable implements ObjectIndex, Iterable { // first pass: find tables final HashMap t = new HashMap(); - long ram, sum = 0, time, maxtime = 0; + long ram, time, maxtime = 0; Date d; for (int i = 0; i < tablefile.length; i++) { if ((tablefile[i].startsWith(prefix)) && @@ -170,11 +170,7 @@ public class SplitTable implements ObjectIndex, Iterable { } try { - ram = Table.staticRAMIndexNeed(f, rowdef); - if (ram > 0) { - t.put(tablefile[i], Long.valueOf(ram)); - sum += ram; - } + t.put(tablefile[i], Table.staticRAMIndexNeed(f, rowdef)); } catch (IOException e) { Log.logWarning("SplitTable", "file " + f.toString() + " appears to be corrupted: " + e.getMessage()); }