summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/util-sql-tickets.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-05-14 19:58:50 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-05-14 19:58:50 +0200
commitfd0c4577a4b6e85ca2db664906e1a03807ce133f (patch)
treefa23fcc04248d03ff82e34634b8ef1bb9cf28acb /tex/context/base/mkiv/util-sql-tickets.lua
parentdb581096187dc2d3cbdbe4cdc39d247c168b1607 (diff)
downloadcontext-fd0c4577a4b6e85ca2db664906e1a03807ce133f.tar.gz
2017-05-14 19:15:00
Diffstat (limited to 'tex/context/base/mkiv/util-sql-tickets.lua')
-rw-r--r--tex/context/base/mkiv/util-sql-tickets.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/util-sql-tickets.lua b/tex/context/base/mkiv/util-sql-tickets.lua
index 5e958299d..f392c0b91 100644
--- a/tex/context/base/mkiv/util-sql-tickets.lua
+++ b/tex/context/base/mkiv/util-sql-tickets.lua
@@ -53,7 +53,7 @@ tickets.statustags = statustags
local s_unknown = status.unknown
local s_pending = status.pending
local s_busy = status.busy
-local s_finished = status.finished
+----- s_finished = status.finished
local s_dependent = status.dependent
local s_error = status.error
local s_deleted = status.deleted
@@ -398,7 +398,8 @@ local template_cleanup_nop =[[
function tickets.cleanupdb(db,delta,nodata) -- maybe delta in db
- local time = delta and (ostime() - delta) or 0
+ local now = ostime()
+ local time = delta and (now - delta) or now
local records, keys = db.execute {
template = nodata and template_cleanup_nop or template_cleanup_yes,