some minor correction of my last commit

sorry for the noise

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7168 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
sixcooler 15 years ago
parent 42fa0eadb1
commit 03f0414025

@ -65,7 +65,7 @@ public class serverAccessTracker {
*/
private synchronized void cleanupAccessTracker() {
if (System.currentTimeMillis() - this.lastCleanup < cleanupCycle) return;
// if (System.currentTimeMillis() - this.lastCleanup < cleanupCycle) return;
this.lastCleanup = System.currentTimeMillis();
// clear entries which had no entry for the maxTrackingTime time
@ -114,9 +114,9 @@ public class serverAccessTracker {
public void track(final String host, String accessPath) {
// check storage size
// if (System.currentTimeMillis() - this.lastCleanup > cleanupCycle) {
if (System.currentTimeMillis() - this.lastCleanup > cleanupCycle) {
cleanupAccessTracker();
// }
}
// learn that a specific host has accessed a specific path
if (accessPath == null) accessPath="NULL";

Loading…
Cancel
Save