Skip to content

Commit

Permalink
*) Bugfix for NoSuchElementException
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2735 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Oct 10, 2006
1 parent f25f61d commit a9c7e3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -432,8 +432,10 @@ public void cacheScan() {
//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();
}
Expand Down

0 comments on commit a9c7e3f

Please sign in to comment.