orbiter 16 years ago
parent 63a0255166
commit e735d3a69f

@ -78,7 +78,12 @@ public class serverAccessTracker {
} }
private SortedMap<Long, String> clearTooOldAccess(final SortedMap<Long, String> access) { private SortedMap<Long, String> clearTooOldAccess(final SortedMap<Long, String> access) {
return access.tailMap(Long.valueOf(System.currentTimeMillis() - maxTrackingTime)); try {
return access.tailMap(Long.valueOf(System.currentTimeMillis() - maxTrackingTime));
} catch (IllegalArgumentException e) {
e.printStackTrace();
return new TreeMap<Long, String>();
}
} }
public void track(final String host, String accessPath) { public void track(final String host, String accessPath) {

Loading…
Cancel
Save