Skip to content

Commit

Permalink
Small fix for the Cache Monitor when using proxyCacheLayout=hash
Browse files Browse the repository at this point in the history
  • Loading branch information
hermens committed Nov 5, 2006
1 parent f37e204 commit 8385557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -712,7 +712,7 @@ private File hashFile(StringBuffer fileName, String prefix, String extention, UR
* This is a helper funktion that extracts the Hash from the filename
*/
public static String getHash(final File f) {
if ((f.getPath().indexOf("hash")) < 0) return null;
if ((!f.isFile()) || (f.getPath().indexOf("hash") < 0)) return null;
String hexHash = f.getName().substring(0,18);
if (hexHash.indexOf('.') >= 0) return null;
try {
Expand Down

0 comments on commit 8385557

Please sign in to comment.