Skip to content

Commit

Permalink
changed getFreeSize();
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@675 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
borg-0300 committed Sep 7, 2005
1 parent f8ad65e commit 8260128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/de/anomic/plasma/plasmaHTCache.java
Expand Up @@ -155,7 +155,7 @@ public void storeHeader(String urlHash, httpHeader responseHeader) throws IOExce
}

public long getFreeSize() {
return maxCacheSize - currCacheSize;
return (currCacheSize > maxCacheSize) ? 0 : maxCacheSize - currCacheSize;
}

public boolean writeFile(URL url, byte[] array) {
Expand Down

0 comments on commit 8260128

Please sign in to comment.