mirror of https://github.com/zlatinb/muwire
try to fix purging of old entries within the same day
parent
aa3cf2cf84
commit
4e6c90b98c
|
@ -164,7 +164,8 @@ class H2HostCache extends HostCache {
|
|||
if (rows.size() < settings.hostProfileHistory)
|
||||
return
|
||||
|
||||
def lastTstamp = rows[settings.hostProfileHistory - 1].TSTAMP
|
||||
def lastTstamp = rows[settings.hostProfileHistory - 1].TSTAMP
|
||||
lastTimestamp = SDF.format(new Date(lastTstamp.getTime()))
|
||||
sql.execute("delete from HOST_ATTEMPTS where DESTINATION=${d.toBase64()} and TSTAMP < $lastTstamp")
|
||||
log.fine("deleted $sql.updateCount old attempts older than $lastTstamp")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue