*) Bugfix for NoSuchElementException

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2735 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent f25f61d9d3
commit a9c7e3f061

@ -432,8 +432,10 @@ public final class plasmaHTCache {
//System.out.println("%" + (String) cacheAge.firstKey() + "=" + cacheAge.get(cacheAge.firstKey()));
long ageHours = 0;
try {
ageHours = (System.currentTimeMillis() -
if (!this.cacheAge.isEmpty()) {
ageHours = (System.currentTimeMillis() -
Long.parseLong(((String) this.cacheAge.firstKey()).substring(0, 16), 16)) / 3600000;
}
} catch (NumberFormatException e) {
//e.printStackTrace();
}

Loading…
Cancel
Save