fix verification

pull/53/head
Zlatin Balevsky 2020-10-22 21:08:34 +01:00
parent b01d8708f2
commit 44eaa3986b
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -326,8 +326,8 @@ class H2HostCache extends HostCache {
private synchronized void verifyHosts() {
log.fine("starting verification")
final long now = System.currentTimeMillis()
def nowTstamp = new java.sql.Date(now)
def hourAgo = new java.sql.Date(now - 60*60*1000)
def nowTstamp = SDF.format(new Date(now))
def hourAgo = SDF.format(new Date(now - 60*60*1000))
List<String> allHosts = new ArrayList<>()
sql.eachRow("select distinct DESTINATION from HOST_ATTEMPTS") {