mirror of https://github.com/zlatinb/muwire
more logging
parent
6107d1e298
commit
7d8c43c9d3
|
@ -164,9 +164,9 @@ class H2HostCache extends HostCache {
|
|||
if (rows.size() < settings.hostProfileHistory)
|
||||
return
|
||||
|
||||
def lastTstamp = rows[rows.size() - 1].TSTAMP
|
||||
def lastTstamp = rows[settings.hostProfileHistory - 1].TSTAMP
|
||||
sql.execute("delete from HOST_ATTEMPTS where DESTINATION=${d.toBase64()} and TSTAMP < $lastTstamp")
|
||||
log.fine("deleted $sql.updateCount old attempts")
|
||||
log.fine("deleted $sql.updateCount old attempts older than $lastTstamp")
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue