fix table and column names

pull/53/head
Zlatin Balevsky 2020-10-20 18:39:04 +01:00
parent b1f58b0948
commit a4e2d28072
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ class H2HostCache extends HostCache {
timestamp = SDF.format(timestamp)
sql.execute("insert into HOST_ATTEMPTS values ('${d.toBase64()}', '$timestamp', '${status.name()}');")
def count = sql.firstRow("select count(*) as COUNT from HOST_PROFILES where DESTINATION=${d.toBase64()}")
if (count.count < settings.hostProfileHistory)
def count = sql.firstRow("select count(*) as COUNT from HOST_ATTEMPTS where DESTINATION=${d.toBase64()}")
if (count.COUNT < settings.hostProfileHistory)
return
log.fine("recomputing Markov for ${d.toBase32()}")